Interface ObservableList<T>

All Superinterfaces:
GetValueModel<T>, Iterable<T>, ObservableValue<T>, Property
All Known Subinterfaces:
ObservableListIndexSelection<T>, ObservableListIndexSelectionExt<T>, ObservableListSelection<T>, WritableList<T>, WritableListIndexSelection<T>, WritableListIndexSelectionExt<T>, WritableListSelection<T>
All Known Implementing Classes:
ReadOnlyList, ReadOnlyListIndexSelection, ReadOnlyListIndexSelectionExt, ReadOnlyListSelection, WritableListAdapter, WritableListBase, WritableListImpl, WritableListIndexSelectionImpl, WritableListSelectionImpl, WritableSetImpl

public interface ObservableList<T> extends ObservableValue<T>, Iterable<T>
  • Method Details

    • get

      T get()
      convenient method to return the first element or null
      Specified by:
      get in interface GetValueModel<T>
      Specified by:
      get in interface ObservableValue<T>
      Returns:
      the first element or null
    • get

      T get(int index)
    • size

      int size()
    • findAllIndexes

      int[] findAllIndexes(Predicate<T> a)
    • contains

      boolean contains(T a)
    • findAll

      List<T> findAll(Predicate<T> a)
    • findFirst

      T findFirst(Predicate<T> a)
    • findFirst

      T findFirst(Predicate<T> a, int from)
    • findFirst

      T findFirst(Predicate<T> a, int from, int to)
    • findFirstIndexOf

      default int findFirstIndexOf(T a)
    • findFirstIndex

      int findFirstIndex(Predicate<T> a)
    • findFirstIndex

      int findFirstIndex(Predicate<T> a, int from)
    • findFirstIndex

      int findFirstIndex(Predicate<T> a, int from, int to)
    • toList

      List<T> toList()
    • readOnly

      ObservableList<T> readOnly()
      Specified by:
      readOnly in interface ObservableValue<T>
      Specified by:
      readOnly in interface Property
    • stream

      default Stream<T> stream()
    • last

      default T last()
    • first

      default T first()