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 boolean
add(T pElement)
protected void
doAdd(int pIndex, T pElement)
protected T
doRemove(int pIndex)
protected T
doSet(int pIndex, T pElement)
T
get(int pIndex)
int
size()
-
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:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
get
public T get(int pIndex)
-
size
public int size()
-
doAdd
protected void doAdd(int pIndex, T pElement)
- Specified by:
doAdd
in classjavafx.collections.ModifiableObservableListBase<T>
-
doSet
protected T doSet(int pIndex, T pElement)
- Specified by:
doSet
in classjavafx.collections.ModifiableObservableListBase<T>
-
-