Module com.iamsoft.util.ui
Class ConstrainedSnapshotList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.ConstrainedSnapshotList<T>
- Type Parameters:
T- Type of element in list.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,javafx.beans.Observable,javafx.collections.ObservableList<T>
public class ConstrainedSnapshotList<T>
extends javafx.collections.ObservableListBase<T>
Filters out 'expired' snapshots.
- See Also:
-
Property Summary
Properties -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionConstrainedSnapshotList(javafx.beans.value.ObservableValue<T> pObservableValue, Function<T, Long> pValToTimeFunction) -
Method Summary
Modifier and TypeMethodDescriptionget(int pIdx) Maximum amount of time between first and last items in list.javafx.beans.property.ObjectProperty<Duration>voidsetMaxDuration(Duration pMaxDuration) Sets the value of the property maxDuration.intsize()Methods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAllMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
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, toArrayMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Property Details
-
maxDuration
- See Also:
-
-
Constructor Details
-
ConstrainedSnapshotList
-
-
Method Details
-
getMaxDuration
Maximum amount of time between first and last items in list. -
setMaxDuration
Sets the value of the property maxDuration.- Property description:
-
maxDurationProperty
- See Also:
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-