java.lang.Object
io.qt.QtObject
io.qt.internal.AbstractSequentialContainer<T>
io.qt.core.QLinkedList<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,Deque<T>
,Queue<T>
public class QLinkedList<T>
extends io.qt.internal.AbstractSequentialContainer<T>
implements Deque<T>, Cloneable
Java wrapper for Qt class QLinkedList
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQLinkedList
(QMetaType metaType) QLinkedList
(QMetaType.Type metaType) protected
QLinkedList
(Class<T> elementType) QLinkedList
(Collection<T> other) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final void
final void
final void
protected final QSequentialIterator<T>
begin()
final void
clear()
clone()
protected final QSequentialConstIterator<T>
protected final QSequentialConstIterator<T>
constEnd()
final boolean
final int
count()
final int
static QLinkedList<Object>
final T
element()
protected final QSequentialIterator<T>
end()
final boolean
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final T
first()
final T
getFirst()
final T
getLast()
int
hashCode()
final boolean
isEmpty()
final T
last()
static <T> QLinkedList<T>
of
(T element0, T... elements) Returns a QLinkedList 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 void
void
readFrom
(QDataStream stream) final T
remove()
final boolean
final int
final T
final boolean
final T
final boolean
final boolean
final int
size()
final boolean
startsWith
(T t) final T
final T
takeLast()
toString()
void
writeTo
(QDataStream stream) Methods inherited from class io.qt.internal.AbstractSequentialContainer
addAll, containsAll, iterator, removeAll, retainAll, 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
containsAll, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
QLinkedList
-
QLinkedList
-
QLinkedList
-
QLinkedList
-
QLinkedList
-
-
Method Details
-
createVariantLinkedList
-
clone
-
append
-
clear
- Specified by:
clear
in interfaceCollection<T>
-
contains
-
count
-
count
-
begin
-
end
-
constBegin
- Specified by:
constBegin
in classio.qt.internal.AbstractSequentialContainer<T>
-
constEnd
- Specified by:
constEnd
in classio.qt.internal.AbstractSequentialContainer<T>
-
endsWith
-
first
-
isEmpty
- Specified by:
isEmpty
in interfaceCollection<T>
-
last
-
prepend
-
removeAll
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<T>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<T>
-
removeOne
-
size
-
startsWith
-
takeFirst
-
takeLast
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation.- Specified by:
equals
in interfaceCollection<T>
- Overrides:
equals
in classQtObject
- Parameters:
other
- other object- Returns:
- true if the native counterpart of the two objects are one and the same.
-
hashCode
- Specified by:
hashCode
in interfaceCollection<T>
- Overrides:
hashCode
in classObject
-
toString
- Overrides:
toString
in classio.qt.internal.AbstractSequentialContainer<T>
-
add
-
remove
-
peekFirst
-
peekLast
-
push
-
pop
-
writeTo
-
readFrom
-
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 classio.qt.internal.AbstractSequentialContainer<T>
-
of
Returns a QLinkedList containing given elements.- Type Parameters:
E
- theQLinkedList
's element type- Parameters:
element0
- the first elementelements
- subsequent elements- Returns:
- a
QLinkedList
containing the specified element - Throws:
NullPointerException
- if elements arenull
-