public class MappingObservableList<T,S> extends TransformationList<T,S>
modCount
Constructor and Description |
---|
MappingObservableList(ObservableList<? extends S> source,
Function<S,T> mapper) |
MappingObservableList(ObservableList<? extends S> source,
ObservableValue<Function<S,T>> mapper) |
Modifier and Type | Method and Description |
---|---|
T |
get(int index) |
int |
getSourceIndex(int index) |
protected Function<S,T> |
resolveMapper() |
int |
size() |
protected void |
sourceChanged(ListChangeListener.Change<? extends S> c) |
getSource, getSourceIndexFor, isInTransformationChain
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
addListener, removeListener
public MappingObservableList(@Nonnull ObservableList<? extends S> source, @Nonnull Function<S,T> mapper)
public MappingObservableList(@Nonnull ObservableList<? extends S> source, @Nonnull ObservableValue<Function<S,T>> mapper)
public int getSourceIndex(int index)
getSourceIndex
in class TransformationList<T,S>
public T get(int index)
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
protected void sourceChanged(ListChangeListener.Change<? extends S> c)
sourceChanged
in class TransformationList<T,S>