java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.internal.QtJambiCollectionObject<E>
io.qt.internal.QtJambiListObject<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
public class QList<T> extends QtJambiListObject<T> implements Cloneable
Java wrapper for Qt class QList
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QList(QMetaType metaType)
QList(QMetaType.Type metaType)
protected
QList(QtObject.QPrivateConstructor p)
QList(Class<T> elementType)
QList(Collection<T> other)
-
Method Summary
Modifier and Type Method Description void
add(int index, T e)
boolean
add(T e)
void
append(Collection<T> t)
void
append(T t)
T
at(int i)
protected QIterator<T>
begin()
void
clear()
QList<T>
clone()
boolean
contains(Object t)
int
count()
int
count(T t)
static QList<Object>
createVariantList()
protected QIterator<T>
end()
boolean
endsWith(T t)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.T
first()
T
get(int index)
int
hashCode()
int
indexOf(Object e)
int
indexOf(T t, int from)
void
insert(int i, T t)
boolean
isEmpty()
T
last()
int
lastIndexOf(Object t)
int
lastIndexOf(T t, int from)
int
length()
QList<T>
mid(int pos)
QList<T>
mid(int pos, int length)
void
move(int from, int to)
static <T> QList<T>
of(T element0, T... elements)
Returns a QList containing given elements.void
prepend(T t)
void
readFrom(QDataStream stream)
boolean
remove(Object e)
int
removeAll(T t)
void
removeAt(int i)
protected void
removeAtIndex(int cursor)
void
removeFirst()
void
removeLast()
boolean
removeOne(T t)
void
replace(int i, T t)
void
reserve(int size)
T
set(int index, T e)
int
size()
boolean
startsWith(T t)
void
swapItemsAt(int i, int j)
T
takeAt(int i)
T
takeFirst()
T
takeLast()
QSet<T>
toSet()
T
value(int i)
T
value(int i, T defaultValue)
void
writeTo(QDataStream stream)
Methods inherited from class io.qt.internal.QtJambiListObject
addAll, addAll, listIterator, listIterator, remove, retainAll, subList
Methods inherited from class io.qt.internal.QtJambiCollectionObject
containsAll, descendingIterator, iterator, removeAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
Method Details
-
createVariantList
-
clone
-
append
- Specified by:
append
in classQtJambiListObject<T>
-
append
-
at
-
begin
- Specified by:
begin
in classQtJambiCollectionObject<T>
-
clear
-
contains
-
count
-
count
-
end
- Specified by:
end
in classQtJambiCollectionObject<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 native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
add
-
add
-
set
-
remove
-
indexOf
-
get
-
swapItemsAt
-
removeAtIndex
- Specified by:
removeAtIndex
in classQtJambiListObject<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
-