java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.internal.QtJambiCollectionObject<E>
io.qt.internal.QtJambiListObject<T>
io.qt.core.QList<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 TypeMethodDescriptionfinal void
final void
clone()
final T
element()
final T
getFirst()
final T
getLast()
static <T> QStack<T>
of
(T element0, T... elements) Returns a QStack containing given elements.final boolean
final boolean
offerFirst
(T e) final boolean
final T
peek()
final T
final T
peekLast()
final T
poll()
final T
final T
pollLast()
final T
pop()
final void
final T
remove()
final boolean
final boolean
final T
top()
Methods inherited from class io.qt.core.QList
add, add, append, append, at, begin, capacity, clear, contains, count, count, createVariantList, end, endsWith, equals, fill, fill, first, get, hashCode, indexOf, indexOf, insert, insert, isEmpty, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, prepend, readFrom, remove, remove, removeAll, removeAt, removeAtIndex, removeFirst, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, swapItemsAt, takeAt, takeFirst, takeLast, 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
-
top
-
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
-