Interface ObservableValues<T,C extends Collection<T>>

Type Parameters:
T - the values type
C - 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>

public interface ObservableValues<T,C extends Collection<T>> extends Observable<C>, Iterable<T>
A read only values observable
  • Method Details

    • get

      @NonNull C get()
      Specified by:
      get in interface Observable<T>
      Returns:
      the value
    • contains

      boolean contains(@Nullable T value)
      Returns true if this Values instance contains the specified element
      Parameters:
      value - the element
      Returns:
      true if this Values instance contains the specified element
    • containsAll

      boolean containsAll(Collection<T> values)
      Returns true if this Values 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