- All Implemented Interfaces:
QtObjectInterface,Cloneable,Iterable<String>,Collection<String>,List<String>
List of strings
Java wrapper for Qt class QStringList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaddAll(int index, Collection<? extends String> c) Inserts all of the elements in the specified collection into this list at the specified position.final booleanaddAll(Collection<? extends String> c) Appends all of the elements in the specified collection to the end of this list.final booleanOverloaded function forcontains(java.lang.String, io.qt.core.Qt.CaseSensitivity)withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.final booleancontains(String str, Qt.CaseSensitivity cs) final booleancontainsAll(Collection<?> c) Returnstrueif this container contains all of the elements in the specified collection.final QStringListSeeQStringList::filter(QRegularExpression) final QStringListfilter(String str, Qt.CaseSensitivity cs) SeeQStringList::filter(QString, Qt::CaseSensitivity) final intOverloaded function forindexOf(io.qt.core.QRegExp, int)withfrom = 0.final intfinal intOverloaded function forindexOf(io.qt.core.QRegularExpression, int)withfrom = 0.final intindexOf(QRegularExpression re, int from) iterator()Returns an iterator over elements of typeT.join(char sep) SeeQStringList::join(QChar) SeeQStringList::join(QString) final intlastIndexOf(QRegExp rx) Overloaded function forlastIndexOf(io.qt.core.QRegExp, int)withfrom = -1.final intlastIndexOf(QRegExp rx, int from) final intOverloaded function forlastIndexOf(io.qt.core.QRegularExpression, int)withfrom = -1.final intlastIndexOf(QRegularExpression re, int from) final ListIterator<String>Returns a list iterator over the elements in this list (in proper sequence).final ListIterator<String>listIterator(int index) Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.final Stringremove(int index) Removes the element at the specified position in this list.final booleanremoveAll(Collection<?> c) Removes all of this container elements that are also contained in the specified collection.intfinal voidreplaceInStrings(QRegularExpression re, String after) final voidreplaceInStrings(String before, String after, Qt.CaseSensitivity cs) final booleanretainAll(Collection<?> c) Retains only the elements in this list that are contained in the specified collection (optional operation).final voidsubList(int fromIndex, int toIndex) Returns a view of the portion of this list between the specifiedfromIndex, inclusive, andtoIndex, exclusive.final String[]toArray()Returns an array containing all of the elements in this container.final <A> A[]toArray(A[] a) Returns an array containing all of the elements in this container.Methods inherited from class io.qt.core.QList
add, add, append, append, assign, at, begin, clear, clone, constBegin, constEnd, contains, count, count, createVariantList, detach, end, endsWith, equals, first, get, hashCode, indexOf, indexOf, insert, isDetached, isEmpty, isSharedWith, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, of, ofBoolean, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofByte, ofChar, ofDouble, ofFloat, ofInt, ofLong, ofShort, ofTyped, ofTyped, prepend, readFrom, remove, removeAll, removeAt, removeFirst, removeIf, removeLast, removeOne, replace, reserve, set, size, startsWith, swap, swapItemsAt, takeAt, takeFirst, takeLast, toSet, toString, value, value, writeToMethods inherited from class io.qt.QtObject
dispose, isDisposedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
addAll, addAll, containsAll, iterator, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
QStringList
public QStringList() -
QStringList
- Parameters:
l-
-
QStringList
- Parameters:
i-
-
QStringList
- Parameters:
args-- Since:
- This function was introduced in Qt 4.8.
-
-
Method Details
-
contains
- Parameters:
str-cs-- Returns:
-
filter
See
QStringList::filter(QRegularExpression) - Parameters:
re-- Returns:
-
filter
See
QStringList::filter(QString, Qt::CaseSensitivity) - Parameters:
str-cs-- Returns:
-
indexOf
- Parameters:
rx-from-- Returns:
-
indexOf
- Parameters:
re-from-- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
join
See
QStringList::join(QChar) - Parameters:
sep-- Returns:
-
join
See
QStringList::join(QString) - Parameters:
sep-- Returns:
-
lastIndexOf
- Parameters:
rx-from-- Returns:
-
lastIndexOf
- Parameters:
re-from-- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
removeDuplicates
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
replaceInStrings
- Parameters:
re-after-- Since:
- This function was introduced in Qt 5.0.
-
replaceInStrings
@QtUninvokable public final void replaceInStrings(String before, String after, Qt.CaseSensitivity cs) - Parameters:
before-after-cs-
-
sort
- Parameters:
cs-
-
contains
Overloaded function for
contains(java.lang.String, io.qt.core.Qt.CaseSensitivity)withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive. -
indexOf
Overloaded function for
indexOf(io.qt.core.QRegExp, int)withfrom = 0. -
indexOf
Overloaded function for
indexOf(io.qt.core.QRegularExpression, int)withfrom = 0. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QRegExp, int)withfrom = -1. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QRegularExpression, int)withfrom = -1. -
addAll
Appends all of the elements in the specified collection to the end of this list.- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>
-
addAll
Inserts all of the elements in the specified collection into this list at the specified position. -
remove
Removes the element at the specified position in this list. -
listIterator
Returns a list iterator over the elements in this list (in proper sequence).- Specified by:
listIteratorin interfaceList<T>
-
listIterator
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.- Specified by:
listIteratorin interfaceList<T>
-
subList
Returns a view of the portion of this list between the specifiedfromIndex, inclusive, andtoIndex, exclusive. (IffromIndexandtoIndexare equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list. -
retainAll
Retains only the elements in this list that are contained in the specified collection (optional operation). In other words, removes from this list all of its elements that are not contained in the specified collection.- Specified by:
retainAllin interfaceCollection<T>- Specified by:
retainAllin interfaceList<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArrayin interfaceCollection<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArrayin interfaceCollection<T>
-
containsAll
Returnstrueif this container contains all of the elements in the specified collection.- Specified by:
containsAllin interfaceCollection<T>
-
removeAll
Removes all of this container elements that are also contained in the specified collection.- Specified by:
removeAllin interfaceCollection<T>
-
iterator
Returns an iterator over elements of typeT.- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Returns:
- an Iterator
-