Interface ValueSetObserver<T>

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>

public interface ValueSetObserver<T> extends ValueObserver<Set<T>>, Iterable<T>
A read only value set observer
  • Method Details

    • contains

      boolean contains(T value)
      Returns true if this set contains the specified element
      Parameters:
      value - the element
      Returns:
      true if this set contains the specified element
    • containsAll

      boolean containsAll(Collection<T> values)
      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