java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.internal.AbstractSequentialContainer<E>
io.qt.internal.AbstractList<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, constBegin, constEnd, 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, toString, value, value, writeTo
Methods inherited from class io.qt.internal.AbstractList
addAll, addAll, listIterator, listIterator, remove, retainAll, subList
Methods inherited from class io.qt.internal.AbstractSequentialContainer
containsAll, 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.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 classAbstractSequentialContainer<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
-