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>
Java wrapper for Qt class QStack
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQStack
(QMetaType.Type metaType) protected
QStack
(Collection<T> other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clone()
element()
getFirst()
getLast()
static <T> QStack<T>
of
(T element0, T... elements) Returns a QStack containing given elements.boolean
boolean
offerFirst
(T e) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
boolean
boolean
final T
top()
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 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.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
-
QStack
-
QStack
-
QStack
-
QStack
-
QStack
-
-
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
-
top
-
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
-