java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.internal.AbstractSequentialContainer<E>
io.qt.internal.AbstractList<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
Java wrapper for Qt class QVector
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQVector
(QMetaType.Type metaType) protected
QVector
(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 int
capacity()
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 void
final void
final T
first()
get
(int index) int
hashCode()
int
final int
final void
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 <T> QVector<T>
of
(T element0, T... elements) Returns a QVector containing given elements.final void
void
readFrom
(QDataStream stream) final void
remove
(int i, int n) boolean
final int
final void
removeAt
(int i) protected final void
removeAtIndex
(int cursor) final T
final T
final boolean
final void
final void
reserve
(int size) final void
resize
(int size) final int
size()
final void
squeeze()
final boolean
startsWith
(T t) 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
-
QVector
-
QVector
-
QVector
-
QVector
-
QVector
-
-
Method Details
-
createVariantVector
-
clone
-
append
- Specified by:
append
in classAbstractList<T>
-
append
-
at
-
begin
- Specified by:
begin
in classAbstractList<T>
-
end
- Specified by:
end
in classAbstractList<T>
-
constBegin
- Specified by:
constBegin
in classAbstractSequentialContainer<T>
-
constEnd
- Specified by:
constEnd
in classAbstractSequentialContainer<T>
-
capacity
-
clear
-
contains
-
count
-
count
-
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 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 classAbstractSequentialContainer<T>
-
add
-
add
-
set
-
remove
-
indexOf
-
get
-
removeAtIndex
- Specified by:
removeAtIndex
in classAbstractList<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
-