java.lang.Object
io.qt.QtObject
io.qt.core.QList<T>
io.qt.core.QQueue<T>
- All Implemented Interfaces:
QtObjectInterface,Cloneable,Iterable<T>,Collection<T>,List<T>,Queue<T>
Java wrapper for Qt class QQueue
-
Constructor Summary
ConstructorsConstructorDescriptionCreating a container with given element type and size.QQueue(QMetaType.Type metaType) Creating a container with given element type and size.Creating a container with given element type.QQueue(Collection<T> other) Creating a container with given content. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaddAll(int index, Collection<? extends T> c) Inserts all of the elements in the specified collection into this list at the specified position.final booleanaddAll(Collection<? extends T> c) Appends all of the elements in the specified collection to the end of this list.clone()Creates and returns a copy of this object.final booleancontainsAll(Collection<?> c) Returnstrueif this container contains all of the elements in the specified collection.Creating a container of type QVariant.final Tdequeue()final Telement()final voidfinal Thead()iterator()Returns an iterator over elements of typeT.final ListIterator<T>Returns a list iterator over the elements in this list (in proper sequence).final ListIterator<T>listIterator(int index) Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.static <T> QQueue<T>of(T element0, T... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Boolean>ofBoolean(boolean ... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Byte>ofBuffer(ByteBuffer elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Character>ofBuffer(CharBuffer elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Double>ofBuffer(DoubleBuffer elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Float>ofBuffer(FloatBuffer elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Integer>Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Long>ofBuffer(LongBuffer elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Short>ofBuffer(ShortBuffer elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Byte>ofByte(byte ... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Character>ofChar(char ... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Double>ofDouble(double ... elements) Returns a QQueue containing given elements.final booleanstatic QQueue<@QtPrimitiveType Float>ofFloat(float ... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Integer>ofInt(int ... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Long>ofLong(long ... elements) Returns a QQueue containing given elements.static QQueue<@QtPrimitiveType Short>ofShort(short ... elements) Returns a QQueue containing given elements.static <T> QQueue<T>Returns a QQueue containing given elements.static <T> QQueue<T>Returns a QQueue containing given elements.final Tpeek()final Tpoll()final Tremove()final Tremove(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.final booleanretainAll(Collection<?> c) Retains only the elements in this list that are contained in the specified collection (optional operation).subList(int fromIndex, int toIndex) Returns a view of the portion of this list between the specifiedfromIndex, inclusive, andtoIndex, exclusive.final T[]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, asBooleanArray, asByteArray, asByteBuffer, asCharArray, asCharBuffer, asDoubleArray, asDoubleBuffer, asFloatArray, asFloatBuffer, asIntArray, asIntBuffer, asLongArray, asLongBuffer, asObjectArray, asShortArray, asShortBuffer, assign, at, begin, capacity, clear, constBegin, constEnd, contains, count, count, createVariantList, createVariantList, detach, end, endsWith, equals, fill, fill, first, get, hashCode, indexOf, indexOf, insert, insert, isDetached, isEmpty, isSharedWith, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, prepend, readFrom, remove, remove, removeAll, removeAt, removeFirst, removeIf, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, swap, swapItemsAt, takeAt, takeFirst, takeLast, 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, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
QQueue
Creating a container with given element type and size.See
QQueue::QQueue() - Parameters:
metaType- the type T
-
QQueue
Creating a container with given element type and size.See
QQueue::QQueue() - Parameters:
metaType- the type T
-
QQueue
Creating a container with given content.- Parameters:
other- container
-
QQueue
Creating a container with given element type.See
QQueue::QQueue() - Parameters:
elementType- the type T
-
-
Method Details
-
createVariantQueue
Creating a container of type QVariant. -
clone
Creates and returns a copy of this object. -
enqueue
-
dequeue
-
head
-
peek
-
poll
-
offer
-
remove
-
element
-
of
Returns a QQueue containing given elements.- Type Parameters:
T- theQQueue's element type- Parameters:
element0- the first elementelements- subsequent elements- Returns:
- a
QQueuecontaining the specified element - Throws:
NullPointerException- if elements arenull
-
ofByte
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofShort
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofInt
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofLong
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofChar
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofFloat
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofDouble
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBoolean
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofBuffer
Returns a QQueue containing given elements.- Parameters:
elements-- Returns:
- a
QQueuecontaining the specified element
-
ofTyped
Returns a QQueue containing given elements.- Type Parameters:
T- theQQueue's element type- Parameters:
type- theQQueue's element typeelements- all list elements to be added- Returns:
- a
QQueuecontaining the specified element
-
ofTyped
Returns a QQueue containing given elements.- Type Parameters:
T- theQQueue's element type- Parameters:
metaType- theQQueue's element typeelements- all list elements to be added- Returns:
- a
QQueuecontaining the specified element
-
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
-