Package org.syncany.util
Class LimitedSortedSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<E>
-
- org.syncany.util.LimitedSortedSet<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 LimitedSortedSet<E> extends java.util.TreeSet<E>
A limited sorted set is aTreeSetwith limited entries. Entries that exceed the maximum size of the set (maxSize) will be removed from the set.
-
-
Constructor Summary
Constructors Constructor Description LimitedSortedSet(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E o)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
-
-
-
-
Constructor Detail
-
LimitedSortedSet
public LimitedSortedSet(int maxSize)
-
-