jsat.utils
Class BoundedSortedSet<V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<V>
-
- jsat.utils.BoundedSortedSet<V>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<V>, java.util.Collection<V>, java.util.NavigableSet<V>, java.util.Set<V>, java.util.SortedSet<V>
public class BoundedSortedSet<V> extends java.util.TreeSet<V>A Sorted set that has a maximum number of values it will hold.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BoundedSortedSet(int max)BoundedSortedSet(int max, java.util.Comparator<? super V> cmp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadd(V e)booleanaddAll(java.util.Collection<? extends V> clctn)intgetMaxSize()Returns the maximum size allowed for the bounded set-
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
-
BoundedSortedSet
public BoundedSortedSet(int max)
-
BoundedSortedSet
public BoundedSortedSet(int max, java.util.Comparator<? super V> cmp)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG