java.lang.Object
io.qt.QtObject
io.qt.internal.AbstractSequentialContainer<E>
io.qt.internal.AbstractList<T>
io.qt.core.QList<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
- Direct Known Subclasses:
QBarDataArray
,QBluetoothServiceInfo.Alternative
,QBluetoothServiceInfo.Sequence
,QItemSelection
,QNdefMessage
,QQueue
,QStringList
,QSurfaceDataArray
,QTestEventList
Java wrapper for Qt class QList
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQList
(QMetaType.Type metaType) protected
QList
(Collection<T> other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
final void
append
(Collection<T> t) final void
final T
at
(int i) protected final QSequentialIterator<T>
begin()
final void
clear()
clone()
protected final QSequentialConstIterator<T>
protected final QSequentialConstIterator<T>
constEnd()
final boolean
final int
count()
final int
protected final QSequentialIterator<T>
end()
final boolean
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final T
first()
get
(int index) int
hashCode()
int
final int
final void
final boolean
isEmpty()
final T
last()
final int
final int
lastIndexOf
(T t, int from) final int
length()
mid
(int pos) mid
(int pos, int length) final void
move
(int from, int to) static QStringList
Returns a QStringList containing given elements.static <T> QList<T>
of
(T element0, T... elements) Returns a QList containing given elements.final void
void
readFrom
(QDataStream stream) boolean
final int
final void
removeAt
(int i) protected final void
removeAtIndex
(int cursor) final void
final void
final boolean
final void
final void
reserve
(int size) final int
size()
final boolean
startsWith
(T t) final void
swapItemsAt
(int i, int j) final T
takeAt
(int i) final T
final T
takeLast()
toSet()
toString()
final T
value
(int i) final T
void
writeTo
(QDataStream stream) Methods inherited from class io.qt.internal.AbstractList
addAll, addAll, listIterator, listIterator, remove, retainAll, subList
Methods inherited from class io.qt.internal.AbstractSequentialContainer
containsAll, descendingIterator, iterator, removeAll, toArray, toArray
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
QList
-
QList
-
QList
-
QList
-
QList
-
-
Method Details
-
createVariantList
-
clone
-
append
- Specified by:
append
in classio.qt.internal.AbstractList<T>
-
append
-
at
-
clear
-
contains
-
count
-
count
-
begin
- Specified by:
begin
in classio.qt.internal.AbstractList<T>
-
end
- Specified by:
end
in classio.qt.internal.AbstractList<T>
-
constBegin
- Specified by:
constBegin
in classio.qt.internal.AbstractSequentialContainer<T>
-
constEnd
- Specified by:
constEnd
in classio.qt.internal.AbstractSequentialContainer<T>
-
endsWith
-
first
-
indexOf
-
insert
-
isEmpty
-
last
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
lastIndexOf
-
length
-
mid
-
mid
-
move
-
prepend
-
removeAll
-
removeAt
-
removeFirst
-
removeLast
-
removeOne
-
replace
-
reserve
-
size
-
startsWith
-
takeAt
-
takeFirst
-
takeLast
-
value
-
value
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
- Overrides:
toString
in classio.qt.internal.AbstractSequentialContainer<T>
-
add
-
add
-
set
-
remove
-
indexOf
-
get
-
swapItemsAt
-
removeAtIndex
- Specified by:
removeAtIndex
in classio.qt.internal.AbstractList<T>
-
toSet
-
writeTo
-
readFrom
-
of
Returns a QList containing given elements.- Type Parameters:
E
- theQList
's element type- Parameters:
element0
- the first elementelements
- subsequent elements- Returns:
- a
QList
containing the specified element - Throws:
NullPointerException
- if elements arenull
-
of
Returns a QStringList containing given elements.- Type Parameters:
E
- theQStringList
's element type- Parameters:
element0
- the first elementelements
- subsequent elements- Returns:
- a
QStringList
containing the specified element
-