Class MappedList<E,​F>

    • Field Detail

      • source

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

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

      • MappedList

        public MappedList​(javafx.collections.ObservableList<? extends E> source,
                          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)
      • mappedChangeView

        static <E,​F> QuasiListChange<F> mappedChangeView​(QuasiListChange<? extends E> change,
                                                               java.util.function.Function<? super E,​? extends F> mapper)