java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.internal.QtJambiCollectionObject<T>
io.qt.core.QLinkedList<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,Deque<T>
,Queue<T>
public class QLinkedList<T> extends QtJambiCollectionObject<T> implements Deque<T>, Cloneable
Java wrapper for Qt class QLinkedList
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QLinkedList(QMetaType metaType)
QLinkedList(QMetaType.Type metaType)
protected
QLinkedList(QtObject.QPrivateConstructor p)
QLinkedList(Class<T> elementType)
QLinkedList(Collection<T> other)
-
Method Summary
Modifier and Type Method Description boolean
add(T e)
void
addFirst(T e)
void
addLast(T e)
void
append(T t)
protected QIterator<T>
begin()
void
clear()
QLinkedList<T>
clone()
boolean
contains(Object t)
int
count()
int
count(T t)
static QLinkedList<Object>
createVariantLinkedList()
Iterator<T>
descendingIterator()
T
element()
protected QIterator<T>
end()
boolean
endsWith(T t)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.T
first()
T
getFirst()
T
getLast()
int
hashCode()
boolean
isEmpty()
T
last()
static <T> QLinkedList<T>
of(T element0, T... elements)
Returns a QLinkedList 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
prepend(T t)
void
push(T e)
void
readFrom(QDataStream stream)
T
remove()
boolean
remove(Object e)
int
removeAll(T t)
T
removeFirst()
boolean
removeFirstOccurrence(Object o)
T
removeLast()
boolean
removeLastOccurrence(Object o)
boolean
removeOne(T t)
int
size()
boolean
startsWith(T t)
T
takeFirst()
T
takeLast()
void
writeTo(QDataStream stream)
Methods inherited from class io.qt.internal.QtJambiCollectionObject
addAll, containsAll, iterator, removeAll, retainAll, toArray, toArray, toString
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
-
Method Details
-
createVariantLinkedList
-
clone
-
append
-
begin
- Specified by:
begin
in classQtJambiCollectionObject<T>
-
clear
- Specified by:
clear
in interfaceCollection<T>
-
contains
-
count
-
count
-
end
- Specified by:
end
in classQtJambiCollectionObject<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 native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation.- Specified by:
equals
in interfaceCollection<T>
- Overrides:
equals
in classQtObject
- Parameters:
other
- The object with which to compare- Returns:
- true if the native resources of the two objects are one and the same.
-
hashCode
- Specified by:
hashCode
in interfaceCollection<T>
- Overrides:
hashCode
in classObject
-
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 classQtJambiCollectionObject<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
-