Module is.codion.common.core
Package is.codion.common.value
Interface ValuesObserver<T,C extends Collection<T>>
- Type Parameters:
T- the values typeC- the collection type
- All Superinterfaces:
EventObserver<C>,Iterable<T>,Supplier<C>,ValueObserver<C>
- All Known Subinterfaces:
ValueList<T>,ValueListObserver<T>,Values<T,,C> ValueSet<T>,ValueSetObserver<T>
A read only values observer
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if thisValuesinstance contains the specified elementbooleancontainsAll(Collection<T> values) Returns true if thisValuesinstance contains all of the elements of the specified collectionbooleanempty()booleannotEmpty()intsize()Methods inherited from interface is.codion.common.event.EventObserver
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListenerMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface is.codion.common.value.ValueObserver
isEqualTo, isNotEqualTo, isNotNull, isNull, isNullable, optional
-
Method Details
-
contains
Returns true if thisValuesinstance contains the specified element- Parameters:
value- the element- Returns:
- true if this
Valuesinstance contains the specified element
-
containsAll
Returns true if thisValuesinstance contains all of the elements of the specified collection- Parameters:
values- the elements to check- Returns:
- true if this
Valuesinstance contains all of the elements of the specified collection
-
empty
boolean empty()- Returns:
- true if this
Valuesinstance is empty
-
notEmpty
boolean notEmpty()- Returns:
- true if this
Valuesinstance is not empty
-
size
int size()- Returns:
- the number of elements in this
Valuesinstance
-