All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QCollator Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.core;


/**
 * 

Compares strings according to a localized collation algorithm

*

Java wrapper for Qt class QCollator

*/ public class QCollator extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QCollator::QCollator()

*/ public QCollator(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QCollator instance); /** *

See QCollator::QCollator(QCollator)

*/ public QCollator(io.qt.core.QCollator arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QCollator instance, io.qt.core.QCollator arg__1); /** *

See QCollator::QCollator(QLocale)

*/ public QCollator(io.qt.core.QLocale locale){ super((QPrivateConstructor)null); initialize_native(this, locale); } private native static void initialize_native(QCollator instance, io.qt.core.QLocale locale); /** *

See QCollator::caseSensitivity()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.CaseSensitivity caseSensitivity(){ return io.qt.core.Qt.CaseSensitivity.resolve(caseSensitivity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int caseSensitivity_native_constfct(long __this__nativeId); /** *

See QCollator::compare(QStringView,QStringView)const

*/ @io.qt.QtUninvokable public final int compare(java.lang.String s1, java.lang.String s2){ return compare_native_QStringView_QStringView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), s1, s2); } @io.qt.QtUninvokable private native int compare_native_QStringView_QStringView_constfct(long __this__nativeId, java.lang.String s1, java.lang.String s2); /** *

See QCollator::ignorePunctuation()const

*/ @io.qt.QtUninvokable public final boolean ignorePunctuation(){ return ignorePunctuation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean ignorePunctuation_native_constfct(long __this__nativeId); /** *

See QCollator::locale()const

*/ @io.qt.QtUninvokable public final io.qt.core.QLocale locale(){ return locale_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QLocale locale_native_constfct(long __this__nativeId); /** *

See QCollator::numericMode()const

*/ @io.qt.QtUninvokable public final boolean numericMode(){ return numericMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean numericMode_native_constfct(long __this__nativeId); /** *

See QCollator::operator()(QStringView,QStringView)const

*/ @io.qt.QtUninvokable public final boolean isLessThan(java.lang.String s1, java.lang.String s2){ return isLessThan_native_QStringView_QStringView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), s1, s2); } @io.qt.QtUninvokable private native boolean isLessThan_native_QStringView_QStringView_constfct(long __this__nativeId, java.lang.String s1, java.lang.String s2); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QCollator value2){ return operator_equal_native_cref_QCollator(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QCollator(long __this__nativeId, long value2); /** *

See QCollator::setCaseSensitivity(Qt::CaseSensitivity)

*/ @io.qt.QtUninvokable public final void setCaseSensitivity(io.qt.core.Qt.CaseSensitivity cs){ setCaseSensitivity_native_Qt_CaseSensitivity(QtJambi_LibraryUtilities.internal.nativeId(this), cs.value()); } @io.qt.QtUninvokable private native void setCaseSensitivity_native_Qt_CaseSensitivity(long __this__nativeId, int cs); /** *

See QCollator::setIgnorePunctuation(bool)

*/ @io.qt.QtUninvokable public final void setIgnorePunctuation(boolean on){ setIgnorePunctuation_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), on); } @io.qt.QtUninvokable private native void setIgnorePunctuation_native_bool(long __this__nativeId, boolean on); /** *

See QCollator::setLocale(QLocale)

*/ @io.qt.QtUninvokable public final void setLocale(io.qt.core.QLocale locale){ setLocale_native_cref_QLocale(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(locale)); } @io.qt.QtUninvokable private native void setLocale_native_cref_QLocale(long __this__nativeId, long locale); /** *

See QCollator::setNumericMode(bool)

*/ @io.qt.QtUninvokable public final void setNumericMode(boolean on){ setNumericMode_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), on); } @io.qt.QtUninvokable private native void setNumericMode_native_bool(long __this__nativeId, boolean on); /** *

See QCollator::sortKey(QString)const

*/ @io.qt.QtUninvokable public final io.qt.core.QCollatorSortKey sortKey(java.lang.String string){ return sortKey_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), string); } @io.qt.QtUninvokable private native io.qt.core.QCollatorSortKey sortKey_native_cref_QString_constfct(long __this__nativeId, java.lang.String string); /** *

See QCollator::swap(QCollator&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.core.QCollator other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QCollator(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QCollator(long __this__nativeId, long other); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QCollator(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QCollator) { return operator_equal((io.qt.core.QCollator) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public QCollator clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QCollator clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy