io.qt.core.QStringList Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* List of strings
* Java wrapper for Qt class QStringList
*/
public class QStringList extends io.qt.core.QList
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QStringList:: QStringList()
*/
public QStringList(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStringList instance);
/**
* See QStringList:: QtJambiStringList(QList<QString>)
*/
public QStringList(java.util.@NonNull Collection arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QStringList instance, java.util.Collection arg__1);
/**
* See QStringList:: QtJambiStringList(std::initializer_list<QString>)
*/
public QStringList(java.lang.@NonNull String@NonNull ... arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QStringList instance, java.lang.String[] arg__1);
/**
* See QStringList:: contains(QStringView, Qt::CaseSensitivity)
*/
@QtUninvokable
public final boolean contains(java.lang.@NonNull String str, io.qt.core.Qt.@NonNull CaseSensitivity cs){
return contains_native_const_QStringView_Qt_CaseSensitivity(str, cs.value());
}
@QtUninvokable
private native boolean contains_native_const_QStringView_Qt_CaseSensitivity(java.lang.String str, int cs);
/**
* See QStringList:: filter(QRegularExpression)
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList filter(io.qt.core.@NonNull QRegularExpression re){
return filter_native_cref_QRegularExpression(QtJambi_LibraryUtilities.internal.checkedNativeId(re));
}
@QtUninvokable
private native io.qt.core.QStringList filter_native_cref_QRegularExpression(long re);
/**
* See QStringList:: filter(QStringView, Qt::CaseSensitivity)
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList filter(java.lang.@NonNull String str, io.qt.core.Qt.@NonNull CaseSensitivity cs){
return filter_native_const_QStringView_Qt_CaseSensitivity(str, cs.value());
}
@QtUninvokable
private native io.qt.core.QStringList filter_native_const_QStringView_Qt_CaseSensitivity(java.lang.String str, int cs);
/**
* See QStringList:: indexOf(QRegularExpression, qsizetype)
*/
@QtUninvokable
public final long indexOf(io.qt.core.@NonNull QRegularExpression re, long from){
return indexOf_native_cref_QRegularExpression_qsizetype(QtJambi_LibraryUtilities.internal.checkedNativeId(re), from);
}
@QtUninvokable
private native long indexOf_native_cref_QRegularExpression_qsizetype(long re, long from);
/**
* See QStringList:: join(QChar)
*/
@QtUninvokable
public native java.lang.@NonNull String join(char sep);
/**
* See QStringList:: join(QStringView)
*/
@QtUninvokable
public native java.lang.@NonNull String join(java.lang.@NonNull String sep);
/**
* See QStringList:: lastIndexOf(QRegularExpression, qsizetype)
*/
@QtUninvokable
public final long lastIndexOf(io.qt.core.@NonNull QRegularExpression re, long from){
return lastIndexOf_native_cref_QRegularExpression_qsizetype(QtJambi_LibraryUtilities.internal.checkedNativeId(re), from);
}
@QtUninvokable
private native long lastIndexOf_native_cref_QRegularExpression_qsizetype(long re, long from);
/**
* See QStringList:: removeDuplicates()
*/
@QtUninvokable
public native long removeDuplicates();
/**
* See QStringList:: replaceInStrings(QRegularExpression, QString)
*/
@QtUninvokable
public final void replaceInStrings(io.qt.core.@NonNull QRegularExpression re, java.lang.@NonNull String after){
replaceInStrings_native_cref_QRegularExpression_cref_QString(QtJambi_LibraryUtilities.internal.checkedNativeId(re), after);
}
@QtUninvokable
private native void replaceInStrings_native_cref_QRegularExpression_cref_QString(long re, java.lang.String after);
/**
* See QStringList:: replaceInStrings(QStringView, QStringView, Qt::CaseSensitivity)
*/
@QtUninvokable
public final void replaceInStrings(java.lang.@NonNull String before, java.lang.@NonNull String after, io.qt.core.Qt.@NonNull CaseSensitivity cs){
replaceInStrings_native_QStringView_QStringView_Qt_CaseSensitivity(before, after, cs.value());
}
@QtUninvokable
private native void replaceInStrings_native_QStringView_QStringView_Qt_CaseSensitivity(java.lang.String before, java.lang.String after, int cs);
/**
* See QStringList:: sort(Qt::CaseSensitivity)
*/
@QtUninvokable
public final void sort(io.qt.core.Qt.@NonNull CaseSensitivity cs){
sort_native_Qt_CaseSensitivity(cs.value());
}
@QtUninvokable
private native void sort_native_Qt_CaseSensitivity(int cs);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStringList(QPrivateConstructor p) { super(p); }
/**
* Returns the objects's hash code computed by qHash(QStringList)
.
*/
@QtUninvokable
@Override
public native int hashCode();
/**
* Creates and returns a copy of this object.
*/
@QtUninvokable
@Override
public native QStringList clone();
}