- 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 TypeMethodDescriptionboolean
Returns true if this set contains the specified elementboolean
containsAll
(Collection<T> values) Returns true if this set contains all of the elements of the specified collectionboolean
empty()
boolean
notEmpty()
int
size()
Methods inherited from interface is.codion.common.event.EventObserver
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods 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
-