java.lang.Object
io.qt.QtObject
io.qt.internal.AbstractSequentialContainer<T>
io.qt.core.QSet<T>
- All Implemented Interfaces:
QtObjectInterface,Cloneable,Iterable<T>,Collection<T>,Set<T>
public class QSet<T>
extends io.qt.internal.AbstractSequentialContainer<T>
implements Set<T>, Cloneable
Java wrapper for Qt class QSet
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal intcapacity()final voidclear()clone()protected final QSequentialConstIterator<T>protected final QSequentialConstIterator<T>constEnd()final booleanfinal intcount()booleanUsed 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.inthashCode()final voidfinal voidintersect(Collection<T> other) final booleanintersects(Collection<T> other) final booleanisEmpty()static <T> QSet<T>of(T element0, T... elements) Returns a QSet containing given elements.voidreadFrom(QDataStream stream) final booleanfinal voidreserve(int size) final intsize()final voidsubtract(Collection<T> other) toString()final voidunite(Collection<T> other) values()voidwriteTo(QDataStream stream) Methods inherited from class io.qt.internal.AbstractSequentialContainer
addAll, containsAll, descendingIterator, iterator, removeAll, retainAll, toArray, toArrayMethods 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
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, iterator, removeAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
QSet
-
QSet
-
QSet
-
QSet
-
QSet
-
-
Method Details
-
clone
-
constBegin
- Specified by:
constBeginin classio.qt.internal.AbstractSequentialContainer<T>
-
capacity
-
clear
-
contains
-
count
-
constEnd
- Specified by:
constEndin classio.qt.internal.AbstractSequentialContainer<T>
-
insert
-
intersect
-
intersects
-
isEmpty
-
remove
-
reserve
-
size
-
subtract
-
unite
-
values
-
equals
Description copied from class:QtObjectUsed 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. -
hashCode
-
toString
- Overrides:
toStringin classio.qt.internal.AbstractSequentialContainer<T>
-
add
-
writeTo
-
readFrom
-
of
Returns a QSet containing given elements.- Type Parameters:
E- theQSet's element type- Parameters:
element0- the first elementelements- subsequent elements- Returns:
- a
QSetcontaining the specified element - Throws:
NullPointerException- if elements arenull
-