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
-
Constructor Summary
ModifierConstructorDescriptionQLinkedList
(QMetaType metaType) QLinkedList
(QMetaType.Type metaType) protected
QLinkedList
(io.qt.QtObject.QPrivateConstructor p) 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
final void
assign
(QLinkedList<T> other) SeeQLinkedList::
operator=(QLinkedList<T>) 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 void
detach()
Detached the container if it is shared.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
Returns true if container is not shared.final boolean
isEmpty()
Returnstrue
if this container contains no elements.final boolean
isSharedWith
(QLinkedList<?> other) Returns true of both containers share the same data.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.static QLinkedList<@QtPrimitiveType Boolean>
ofBoolean
(boolean ... elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Byte>
ofBuffer
(ByteBuffer elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Character>
ofBuffer
(CharBuffer elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Double>
ofBuffer
(DoubleBuffer elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Float>
ofBuffer
(FloatBuffer elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Integer>
Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Long>
ofBuffer
(LongBuffer elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Short>
ofBuffer
(ShortBuffer elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Byte>
ofByte
(byte ... elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Character>
ofChar
(char ... elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Double>
ofDouble
(double ... elements) Returns a QLinkedList containing given elements.final boolean
final boolean
offerFirst
(T e) final boolean
static QLinkedList<@QtPrimitiveType Float>
ofFloat
(float ... elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Integer>
ofInt
(int ... elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Long>
ofLong
(long ... elements) Returns a QLinkedList containing given elements.static QLinkedList<@QtPrimitiveType Short>
ofShort
(short ... elements) Returns a QLinkedList containing given elements.static <T> QLinkedList<T>
Returns a QLinkedList containing given elements.static <T> QLinkedList<T>
Returns a QLinkedList containing given elements.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 void
swap
(QLinkedList<T> other) SeeQLinkedList::
swap(QLinkedList<T>&) final T
final T
takeLast()
final T[]
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
protected QLinkedList(io.qt.QtObject.QPrivateConstructor p) 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:
T
- theQLinkedList
's element type- Parameters:
element0
- the first elementelements
- subsequent elements- Returns:
- a
QLinkedList
containing the specified element - Throws:
NullPointerException
- if elements arenull
-
ofByte
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofShort
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofInt
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofLong
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofChar
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofFloat
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofDouble
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBoolean
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements
-- Returns:
- a
QLinkedList
containing the specified element
-
ofTyped
Returns a QLinkedList containing given elements.- Type Parameters:
T
- theQLinkedList
's element type- Parameters:
type
- theQLinkedList
's element typeelements
- all list elements to be added- Returns:
- a
QLinkedList
containing the specified element
-
ofTyped
Returns a QLinkedList containing given elements.- Type Parameters:
T
- theQLinkedList
's element type- Parameters:
metaType
- theQLinkedList
's element typeelements
- all list elements to be added- Returns:
- a
QLinkedList
containing the specified element
-
assign
See
QLinkedList::
operator=(QLinkedList<T>) -
swap
See
QLinkedList::
swap(QLinkedList<T>&) -
isDetached
Returns true if container is not shared. -
detach
Detached the container if it is shared. -
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
-