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:
Iterable<T>
,Observer<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 TypeMethodDescriptionboolean
Returns true if thisValues
instance contains the specified elementboolean
containsAll
(Collection<T> values) Returns true if thisValues
instance contains all of the elements of the specified collectionboolean
empty()
boolean
notEmpty()
int
size()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface is.codion.common.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
Methods inherited from interface is.codion.common.value.ValueObserver
get, isEqualTo, isNotEqualTo, isNotNull, isNull, nullable, optional
-
Method Details
-
contains
Returns true if thisValues
instance contains the specified element- Parameters:
value
- the element- Returns:
- true if this
Values
instance contains the specified element
-
containsAll
Returns true if thisValues
instance contains all of the elements of the specified collection- Parameters:
values
- the elements to check- Returns:
- true if this
Values
instance contains all of the elements of the specified collection
-
empty
boolean empty()- Returns:
- true if this
Values
instance is empty
-
notEmpty
boolean notEmpty()- Returns:
- true if this
Values
instance is not empty
-
size
int size()- Returns:
- the number of elements in this
Values
instance
-