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>
io.qt.core.QStack<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,Deque<T>
,List<T>
,Queue<T>
public class QStack<T> extends QVector<T> implements Deque<T>
Java wrapper for Qt class QStack
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QStack(QMetaType metaType)
QStack(QMetaType.Type metaType)
protected
QStack(QtObject.QPrivateConstructor p)
QStack(Class<T> elementType)
QStack(Collection<T> other)
-
Method Summary
Modifier and Type Method Description void
addFirst(T e)
void
addLast(T e)
QStack<T>
clone()
static QStack<Object>
createVariantStack()
Iterator<T>
descendingIterator()
T
element()
T
getFirst()
T
getLast()
static <T> QStack<T>
of(T element0, T... elements)
Returns a QStack containing given elements.boolean
offer(T e)
boolean
offerFirst(T e)
boolean
offerLast(T e)
T
peek()
T
peekFirst()
T
peekLast()
T
poll()
T
pollFirst()
T
pollLast()
T
pop()
void
push(T e)
T
remove()
boolean
removeFirstOccurrence(Object o)
boolean
removeLastOccurrence(Object o)
Methods inherited from class io.qt.core.QVector
add, add, append, append, at, begin, capacity, clear, contains, count, count, createVariantVector, end, endsWith, equals, fill, fill, first, get, hashCode, indexOf, indexOf, insert, insert, isEmpty, last, lastIndexOf, lastIndexOf, length, mid, mid, move, prepend, readFrom, remove, remove, removeAll, removeAt, removeAtIndex, removeFirst, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, takeAt, takeFirst, takeLast, toSet, value, value, writeTo
Methods inherited from class io.qt.internal.QtJambiListObject
addAll, addAll, listIterator, listIterator, remove, retainAll, subList
Methods inherited from class io.qt.internal.QtJambiCollectionObject
containsAll, 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.Deque
add, addAll, contains, iterator, remove, removeFirst, removeLast, size
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
Method Details
-
createVariantStack
-
clone
-
remove
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<T>
-
offerLast
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
poll
-
element
-
peek
-
offer
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<T>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<T>
- Overrides:
descendingIterator
in classQtJambiCollectionObject<T>
-
peekFirst
-
peekLast
-
push
-
pop
-
of
Returns a QStack containing given elements.- Type Parameters:
E
- theQStack
's element type- Parameters:
element0
- the first elementelements
- subsequent elements- Returns:
- a
QStack
containing the specified element - Throws:
NullPointerException
- if elements arenull
-