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
ConstructorsModifierConstructorDescriptionQLinkedList(QMetaType metaType) QLinkedList(QMetaType.Type metaType) protectedQLinkedList(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.QLinkedList(Class<T> elementType) QLinkedList(Collection<T> other) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanbooleanaddAll(Collection<? extends T> c) Adds all of the elements in the specified collection to this container.final voidfinal voidfinal voidfinal voidassign(QLinkedList<T> other) SeeQLinkedList::operator=(QLinkedList<T>) protected final QSequentialIterator<T>begin()final voidclear()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 booleanfinal booleancontainsAll(Collection<?> c) Returnstrueif this container contains all of the elements in the specified collection.final intcount()final intstatic QLinkedList<Object>Creating a container of type QVariant.final voiddetach()Detached the container if it is shared.final Telement()protected final QSequentialIterator<T>end()final booleanbooleanfinal Tfirst()final TgetFirst()final TgetLast()inthashCode()Returns the objects's hash code computed byqHash(QLinkedList<T>).final booleanReturns true if container is not shared.final booleanisEmpty()Returnstrueif this container contains no elements.final booleanisSharedWith(QLinkedList<?> other) Returns true of both containers share the same data.iterator()Returns an iterator over elements of typeT.final Tlast()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 booleanfinal booleanofferFirst(T e) final booleanstatic 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 Tpeek()final Tfinal TpeekLast()final Tpoll()final Tfinal TpollLast()final Tpop()final voidfinal voidvoidreadFrom(QDataStream stream) Seeoperator>>(QDataStream&,QLinkedList<T>&) final Tremove()final booleanfinal booleanremoveAll(Collection<?> c) Removes all of this container elements that are also contained in the specified collection.final intfinal Tfinal booleanfinal booleanfinal Tfinal booleanfinal booleanbooleanretainAll(Collection<?> c) Retains only the elements in this container that are contained in the specified collection.final intsize()Returns the number of elements in this container.final booleanstartsWith(T t) final voidswap(QLinkedList<T> other) SeeQLinkedList::swap(QLinkedList<T>&) final Tfinal TtakeLast()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.voidwriteTo(QDataStream stream) Seeoperator<<(QDataStream&,QLinkedList<T>) Methods inherited from class io.qt.QtObject
dispose, isDisposedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
clearin 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
Returnstrueif this container contains no elements.- Specified by:
isEmptyin interfaceCollection<T>- Returns:
trueif this container contains no elements
-
last
-
prepend
-
removeAll
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<T>
-
removeLast
- Specified by:
removeLastin interfaceDeque<T>
-
removeIf
- Specified by:
removeIfin interfaceCollection<T>
-
removeOne
-
size
Returns the number of elements in this container. If this container contains more thanInteger.MAX_VALUEelements, returnsInteger.MAX_VALUE. -
startsWith
-
takeFirst
-
takeLast
-
equals
- Specified by:
equalsin interfaceCollection<T>- Overrides:
equalsin 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:
hashCodein interfaceCollection<T>- Overrides:
hashCodein 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:
offerFirstin interfaceDeque<T>
-
offerLast
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
poll
-
element
-
peek
-
offer
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<T>
-
descendingIterator
- Specified by:
descendingIteratorin 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
QLinkedListcontaining the specified element - Throws:
NullPointerException- if elements arenull
-
ofByte
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofShort
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofInt
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofLong
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofChar
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofFloat
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofDouble
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBoolean
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining the specified element
-
ofBuffer
Returns a QLinkedList containing given elements.- Parameters:
elements-- Returns:
- a
QLinkedListcontaining 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
QLinkedListcontaining 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
QLinkedListcontaining 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:
toArrayin interfaceCollection<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArrayin interfaceCollection<T>
-
containsAll
Returnstrueif this container contains all of the elements in the specified collection.- Specified by:
containsAllin interfaceCollection<T>
-
addAll
Adds all of the elements in the specified collection to this container.- Specified by:
addAllin interfaceCollection<T>
-
removeAll
Removes all of this container elements that are also contained in the specified collection.- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
Retains only the elements in this container that are contained in the specified collection.- Specified by:
retainAllin interfaceCollection<T>
-
iterator
Returns an iterator over elements of typeT.- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Returns:
- an Iterator
-