Class ValAsList<T>

All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>, javafx.beans.Observable, javafx.collections.ObservableList<T>, AccessorListMethods<T>, LiveList<T>, ProperLiveList<T>, UnmodifiableByDefaultList<T>, UnmodifiableByDefaultLiveList<T>, Observable<LiveList.Observer<? super T,?>>, ProperObservable<LiveList.Observer<? super T,?>,QuasiListChange<? extends T>>

class ValAsList<T> extends LiveListBase<T> implements UnmodifiableByDefaultLiveList<T>
  • Field Details

    • underlying

      private final javafx.beans.value.ObservableValue<T> underlying
  • Constructor Details

    • ValAsList

      ValAsList(javafx.beans.value.ObservableValue<T> underlying)
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface List<T>
    • get

      public T get(int index)
      Specified by:
      get in interface List<T>
    • observeInputs

      protected Subscription observeInputs()
      Description copied from class: ObservableBase
      Starts observing this observable's input(s), if any. This method is called when the number of observers goes from 0 to 1. This method is called before ObservableBase.newObserver(Object) is called for the first observer.
      Specified by:
      observeInputs in class ObservableBase<LiveList.Observer<? super T,?>,QuasiListChange<? extends T>>
      Returns:
      subscription used to stop observing inputs. The subscription is unsubscribed (i.e. input observation stops) when the number of observers goes down to 0.