- 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)
. -
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) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(char[] s1, char[] s2, int offsetOfS2, int len2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(char[] s1, int offsetOfS1, int len1, char[] s2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(char[] s1, int offsetOfS1, int len1, char[] s2, int offsetOfS2, int len2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(char[] s1, int offsetOfS1, int len1, CharBuffer s2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(char[] s1, CharBuffer s2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(CharSequence s1, CharSequence s2) final int
final int
compare
(CharBuffer s1, char[] s2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(CharBuffer s1, char[] s2, int offsetOfS2, int len2) Overloaded function forcompare(java.nio.CharBuffer, java.nio.CharBuffer)
.final int
compare
(CharBuffer s1, CharBuffer s2) static int
defaultCompare
(String s1, String s2) static QCollatorSortKey
defaultSortKey
(String key) final boolean
Seeoperator==(QCollator,
QCollator) boolean
Seeoperator==(QCollator,
QCollator) int
hashCode()
Returns the objects's hash code computed byqHash(QCollator)
.final boolean
final boolean
invoke
(CharSequence s1, CharSequence s2) final boolean
final boolean
isLessThan
(CharSequence s1, CharSequence s2) Delegate forinvoke(java.lang.CharSequence, java.lang.CharSequence)
.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
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)
.
-
-
Method Details
-
caseSensitivity
-
compare
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
compare
-
ignorePunctuation
-
locale
-
numericMode
-
invoke
-
invoke
-
assign
-
equals
See
operator==(QCollator,
QCollator) -
setCaseSensitivity
-
setIgnorePunctuation
-
setLocale
-
setNumericMode
-
sortKey
-
swap
-
defaultCompare
See
QCollator::
defaultCompare(QStringView, QStringView) This function was introduced in Qt 6.3.
-
defaultSortKey
See
QCollator::
defaultSortKey(QStringView) This function was introduced in Qt 6.3.
-
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.
-
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
@QtUninvokable public final int compare(char[] s1, int offsetOfS1, int len1, char[] s2, int offsetOfS2, int len2) Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
compare
Overloaded function for
compare(java.nio.CharBuffer, java.nio.CharBuffer)
. -
isLessThan
Delegate for
invoke(java.lang.CharSequence, java.lang.CharSequence)
. -
isLessThan
Delegate for
invoke(java.lang.String, java.lang.String)
. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
.
-