Class DynamicallyMappedList<E,​F>

    • Field Detail

      • source

        private final javafx.collections.ObservableList<? extends E> source
      • mapper

        private final Val<? extends java.util.function.Function<? super E,​? extends F>> mapper
    • Constructor Detail

      • DynamicallyMappedList

        public DynamicallyMappedList​(javafx.collections.ObservableList<? extends E> source,
                                     javafx.beans.value.ObservableValue<? extends java.util.function.Function<? super E,​? extends F>> mapper)
    • Method Detail

      • get

        public F get​(int index)
        Specified by:
        get in interface java.util.List<E>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<E>
        Specified by:
        size in interface java.util.List<E>
      • 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 F,​?>,​QuasiListChange<? extends F>>
        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.
      • sourceChanged

        private void sourceChanged​(QuasiListChange<? extends E> change)
      • mapperInvalidated

        private void mapperInvalidated​(java.util.function.Function<? super E,​? extends F> oldMapper)