java.lang.Object
io.qt.QtObject
io.qt.core.QLinkedList<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,Deque<T>
,Queue<T>
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
Constructor for internal use only.QLinkedList
(Class<T> elementType) QLinkedList
(Collection<T> other) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
boolean
addAll
(Collection<? extends T> c) Adds all of the elements in the specified collection to this container.final void
final void
final void
protected final QSequentialIterator<T>
begin()
final void
clear()
clone()
Creates and returns a copy of this object.protected final QSequentialConstIterator<T>
Provides a constant C++ iterator to the containers begin.protected final QSequentialConstIterator<T>
constEnd()
Provides a constant C++ iterator to the containers end.final boolean
final boolean
containsAll
(Collection<?> c) Returnstrue
if this container contains all of the elements in the specified collection.final int
count()
final int
static QLinkedList<Object>
Creating a container of type QVariant.final T
element()
protected final QSequentialIterator<T>
end()
final boolean
boolean
final T
first()
final T
getFirst()
final T
getLast()
int
hashCode()
Returns the objects's hash code computed byqHash(QLinkedList<T>)
.final boolean
isEmpty()
Returnstrue
if this container contains no elements.iterator()
Returns an iterator over elements of typeT
.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) Seeoperator>>(QDataStream&,
QLinkedList<T>&) final T
remove()
final boolean
final boolean
removeAll
(Collection<?> c) Removes all of this container elements that are also contained in the specified collection.final int
final T
final boolean
final boolean
final T
final boolean
final boolean
boolean
retainAll
(Collection<?> c) Retains only the elements in this container that are contained in the specified collection.final int
size()
Returns the number of elements in this container.final boolean
startsWith
(T t) final T
final T
takeLast()
final Object[]
toArray()
Returns an array containing all of the elements in this container.final <A> A[]
toArray
(A[] a) Returns an array containing all of the elements in this container.toString()
Returns a string representation of this sequential container.void
writeTo
(QDataStream stream) Seeoperator<<(QDataStream&,
QLinkedList<T>) 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, retainAll, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
QLinkedList
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QLinkedList
-
QLinkedList
-
QLinkedList
-
QLinkedList
-
-
Method Details
-
createVariantLinkedList
Creating a container of type QVariant. -
clone
Creates and returns a copy of this object. -
append
-
clear
- Specified by:
clear
in interfaceCollection<T>
-
contains
-
count
-
count
-
begin
-
end
-
constBegin
Provides a constant C++ iterator to the containers begin.- Returns:
- begin
-
constEnd
Provides a constant C++ iterator to the containers end.- Returns:
- end
-
endsWith
-
first
-
isEmpty
Returnstrue
if this container contains no elements.- Specified by:
isEmpty
in interfaceCollection<T>
- Returns:
true
if this container contains no elements
-
last
-
prepend
-
removeAll
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<T>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<T>
-
removeIf
- Specified by:
removeIf
in interfaceCollection<T>
-
removeOne
-
size
Returns the number of elements in this container. If this container contains more thanInteger.MAX_VALUE
elements, returnsInteger.MAX_VALUE
. -
startsWith
-
takeFirst
-
takeLast
-
equals
- 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
Returns the objects's hash code computed byqHash(QLinkedList<T>)
.- Specified by:
hashCode
in interfaceCollection<T>
- Overrides:
hashCode
in classObject
-
toString
Returns a string representation of this sequential container.- Returns:
- String
-
add
-
remove
-
peekFirst
-
peekLast
-
push
-
pop
-
writeTo
See
operator<<(QDataStream&,
QLinkedList<T>) -
readFrom
See
operator>>(QDataStream&,
QLinkedList<T>&) -
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>
-
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
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArray
in interfaceCollection<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArray
in interfaceCollection<T>
-
containsAll
Returnstrue
if this container contains all of the elements in the specified collection.- Specified by:
containsAll
in interfaceCollection<T>
-
addAll
Adds all of the elements in the specified collection to this container.- Specified by:
addAll
in interfaceCollection<T>
-
removeAll
Removes all of this container elements that are also contained in the specified collection.- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
Retains only the elements in this container that are contained in the specified collection.- Specified by:
retainAll
in interfaceCollection<T>
-
iterator
Returns an iterator over elements of typeT
.- Specified by:
iterator
in interfaceCollection<T>
- Specified by:
iterator
in interfaceIterable<T>
- Returns:
- an Iterator
-