java.lang.Object
io.qt.QtObject
io.qt.core.QCollator
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparator<String>
Compares strings according to a localized collation algorithm
Java wrapper for Qt class QCollator
-
Constructor Summary
ConstructorDescriptionQCollator
(QLocale.Language locale) Overloaded constructor forQCollator(io.qt.core.QLocale)
.Overloaded constructor forQCollator(io.qt.core.QLocale)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final Qt.CaseSensitivity
clone()
Creates and returns a copy of this object.final int
compare
(char[] s1, char[] s2) final int
final boolean
Seeoperator==(QCollator,
QCollator) boolean
Seeoperator==(QCollator,
QCollator) int
hashCode()
Returns the objects's hash code computed byqHash(QCollator)
.final boolean
final boolean
SeeQCollator::
operator()(QStringView, QStringView)const final boolean
isLessThan
(String s1, String s2) Delegate forinvoke(java.lang.String, java.lang.String)
.final QLocale
locale()
final boolean
final void
final void
setIgnorePunctuation
(boolean on) final void
final void
setLocale
(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale)
.final void
Overloaded function forsetLocale(io.qt.core.QLocale)
.final void
setNumericMode
(boolean on) final QCollatorSortKey
final void
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
QCollator
public QCollator() -
QCollator
-
QCollator
-
QCollator
Overloaded constructor for
QCollator(io.qt.core.QLocale)
. -
QCollator
Overloaded constructor for
QCollator(io.qt.core.QLocale)
.
-
-
Method Details
-
caseSensitivity
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
compare
-
ignorePunctuation
-
locale
-
numericMode
-
invoke
See
QCollator::
operator()(QStringView, QStringView)const -
assign
-
equals
See
operator==(QCollator,
QCollator) -
setCaseSensitivity
-
setIgnorePunctuation
-
setLocale
-
setNumericMode
-
sortKey
-
swap
-
equals
See
operator==(QCollator,
QCollator) - Specified by:
equals
in interfaceComparator<String>
- Overrides:
equals
in classQtObject
- Parameters:
other
- other object- Returns:
- true if the native counterpart of the two objects are one and the same.
-
hashCode
Returns the objects's hash code computed byqHash(QCollator)
. -
clone
Creates and returns a copy of this object.
-
isLessThan
Delegate for
invoke(java.lang.String, java.lang.String)
. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
.
-