Class LimitedTreeSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<E>
-
- org.processmining.plugins.stochasticpetrinet.prediction.timeseries.LimitedTreeSet<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.NavigableSet<E>,java.util.Set<E>,java.util.SortedSet<E>
public class LimitedTreeSet<E> extends java.util.TreeSet<E>ATreeSetwith an upper bound on size (if an element will be inserted, the lowest value will be removed)- Author:
- Andreas Rogge-Solti
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LimitedTreeSet(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(java.util.Collection<? extends E> c)-
Methods inherited from class java.util.TreeSet
ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
add
public boolean add(E e)
-
-