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
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescription -
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
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
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
-
-
Method Details
-
caseSensitivity
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
compare
-
ignorePunctuation
-
locale
-
numericMode
-
invoke
See
QCollator::
operator()(QStringView, QStringView)const -
assign
-
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)
.
-