Module com.iamsoft.util.ui
Class ObservableLimitedList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<E>
-
- javafx.collections.ModifiableObservableListBase<T>
-
- com.iamsoft.util.ui.javafx.collections.ObservableLimitedList<T>
-
- Type Parameters:
T- Type of the item in this list.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,javafx.beans.Observable,javafx.collections.ObservableList<T>
public class ObservableLimitedList<T> extends javafx.collections.ModifiableObservableListBase<T>ObservableList with limited size.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ObservableLimitedList(int pMaxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T pElement)protected voiddoAdd(int pIndex, T pElement)protected TdoRemove(int pIndex)protected TdoSet(int pIndex, T pElement)Tget(int pIndex)intsize()-
Methods inherited from class javafx.collections.ModifiableObservableListBase
add, addAll, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subList
-
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
-
Methods inherited from class java.util.AbstractList
clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public boolean add(T pElement)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
get
public T get(int pIndex)
-
size
public int size()
-
doAdd
protected void doAdd(int pIndex, T pElement)- Specified by:
doAddin classjavafx.collections.ModifiableObservableListBase<T>
-
doSet
protected T doSet(int pIndex, T pElement)
- Specified by:
doSetin classjavafx.collections.ModifiableObservableListBase<T>
-
-