Module is.codion.common.core
Package is.codion.common.value
Interface ObservableValues<T,C extends Collection<T>>
- Type Parameters:
T
- the values typeC
- the collection type
- All Superinterfaces:
Iterable<T>
,Observable<C>
,Observer<C>
- All Known Subinterfaces:
ObservableValueList<T>
,ObservableValueSet<T>
,ValueList<T>
,Values<T,
,C> ValueSet<T>
A read only values observable
-
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 collectionget()
boolean
isEmpty()
int
size()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface is.codion.common.observable.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, getOrThrow, isEqualTo, isNotEqualTo, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
get
- Specified by:
get
in interfaceObservable<T>
- Returns:
- the value
-
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
-
isEmpty
boolean isEmpty()- Returns:
- true if this
Values
instance is empty
-
size
int size()- Returns:
- the number of elements in this
Values
instance
-