java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.internal.QtJambiCollectionObject<E>
io.qt.internal.QtJambiListObject<T>
io.qt.core.QVector<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
- Direct Known Subclasses:
QBarDataRow
,QPolygon
,QPolygonF
,QScatterDataArray
,QStack
,QSurfaceDataRow
,QXmlStreamAttributes
public class QVector<T> extends QtJambiListObject<T> implements Cloneable
Java wrapper for Qt class QVector
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QVector(QMetaType metaType)
QVector(QMetaType.Type metaType)
protected
QVector(QtObject.QPrivateConstructor p)
QVector(Class<T> elementType)
QVector(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()
int
capacity()
void
clear()
QVector<T>
clone()
boolean
contains(Object t)
int
count()
int
count(T t)
static QVector<Object>
createVariantVector()
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.void
fill(T t)
void
fill(T t, int size)
T
first()
T
get(int index)
int
hashCode()
int
indexOf(Object e)
int
indexOf(T t, int from)
void
insert(int i, int n, T t)
void
insert(int i, T t)
boolean
isEmpty()
T
last()
int
lastIndexOf(Object t)
int
lastIndexOf(T t, int from)
int
length()
QVector<T>
mid(int pos)
QVector<T>
mid(int pos, int length)
void
move(int from, int to)
static <T> QVector<T>
of(T element0, T... elements)
Returns a QVector containing given elements.void
prepend(T t)
void
readFrom(QDataStream stream)
void
remove(int i, int n)
boolean
remove(Object e)
int
removeAll(T t)
void
removeAt(int i)
protected void
removeAtIndex(int cursor)
T
removeFirst()
T
removeLast()
boolean
removeOne(T t)
void
replace(int i, T t)
void
reserve(int size)
void
resize(int size)
T
set(int index, T e)
int
size()
void
squeeze()
boolean
startsWith(T t)
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
-
createVariantVector
-
clone
-
append
- Specified by:
append
in classQtJambiListObject<T>
-
append
-
at
-
begin
- Specified by:
begin
in classQtJambiCollectionObject<T>
-
capacity
-
clear
-
contains
-
count
-
count
-
end
- Specified by:
end
in classQtJambiCollectionObject<T>
-
endsWith
-
fill
-
fill
-
first
-
indexOf
-
insert
-
insert
-
isEmpty
-
last
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
lastIndexOf
-
length
-
mid
-
mid
-
move
-
prepend
-
remove
-
removeAll
-
removeAt
-
removeFirst
-
removeLast
-
removeOne
-
replace
-
reserve
-
resize
-
squeeze
-
size
-
startsWith
-
takeAt
-
takeFirst
-
takeLast
-
toSet
-
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
-
removeAtIndex
- Specified by:
removeAtIndex
in classQtJambiListObject<T>
-
writeTo
-
readFrom
-
of
Returns a QVector containing given elements.- Type Parameters:
E
- theQVector
's element type- Parameters:
element0
- the first elementelements
- subsequent elements- Returns:
- a
QVector
containing the specified element - Throws:
NullPointerException
- if elements arenull
-