- Type Parameters:
T- the type of the values
- All Superinterfaces:
EventObserver<Set<T>>,Iterable<T>,Supplier<Set<T>>,ValueObserver<Set<T>>
- All Known Subinterfaces:
ValueSet<T>
A read only value set observer
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this set contains the specified elementbooleancontainsAll(Collection<T> values) Returns true if this set contains all of the elements of the specified collectionbooleanempty()booleannotEmpty()intsize()Methods inherited from interface is.codion.common.event.EventObserver
addDataListener, addListener, addWeakDataListener, addWeakListener, removeDataListener, removeListener, removeWeakDataListener, removeWeakListenerMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface is.codion.common.value.ValueObserver
isEqualTo, isNotEqualTo, isNotNull, isNull, nullable, optional
-
Method Details
-
contains
Returns true if this set contains the specified element- Parameters:
value- the element- Returns:
- true if this set contains the specified element
-
containsAll
Returns true if this set contains all of the elements of the specified collection- Parameters:
values- the elements to check- Returns:
- true if this set contains all of the elements of the specified collection
-
empty
boolean empty()- Returns:
- true if this value set is empty
-
notEmpty
boolean notEmpty()- Returns:
- true if this value set is not empty
-
size
int size()- Returns:
- the number of elements in this value set
-