java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.internal.QtJambiCollectionObject<T>
io.qt.core.QSet<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
,Collection<T>
,Set<T>
public class QSet<T> extends QtJambiCollectionObject<T> implements Set<T>, Cloneable
Java wrapper for Qt class QSet
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QSet(QMetaType metaType)
QSet(QMetaType.Type metaType)
protected
QSet(QtObject.QPrivateConstructor p)
QSet(Class<T> elementType)
QSet(Collection<T> other)
-
Method Summary
Modifier and Type Method Description boolean
add(T e)
protected QIterator<T>
begin()
int
capacity()
void
clear()
QSet<T>
clone()
boolean
contains(Object t)
int
count()
protected QIterator<T>
end()
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.int
hashCode()
void
insert(T t)
void
intersect(Collection<T> other)
boolean
intersects(Collection<T> other)
boolean
isEmpty()
static <T> QSet<T>
of(T element0, T... elements)
Returns a QSet containing given elements.void
readFrom(QDataStream stream)
boolean
remove(Object t)
void
reserve(int size)
int
size()
void
subtract(Collection<T> other)
void
unite(Collection<T> other)
QList<T>
values()
void
writeTo(QDataStream stream)
Methods inherited from class io.qt.internal.QtJambiCollectionObject
addAll, containsAll, descendingIterator, 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.Set
addAll, containsAll, iterator, removeAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
Method Details
-
clone
-
begin
- Specified by:
begin
in classQtJambiCollectionObject<T>
-
capacity
-
clear
-
contains
-
count
-
end
- Specified by:
end
in classQtJambiCollectionObject<T>
-
insert
-
intersect
-
intersects
-
isEmpty
-
remove
-
reserve
-
size
-
subtract
-
unite
-
values
-
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. -
hashCode
-
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
QSet
containing the specified element - Throws:
NullPointerException
- if elements arenull
-