org.elasticsearch.common.collect
Class BoundedTreeSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet<E>
org.elasticsearch.common.collect.BoundedTreeSet<E>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<E>, Collection<E>, NavigableSet<E>, Set<E>, SortedSet<E>
public class BoundedTreeSet<E>
- extends TreeSet<E>
A TreeSet
that is bounded by size.
- See Also:
- Serialized Form
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, subSet, subSet, tailSet, tailSet |
BoundedTreeSet
public BoundedTreeSet(int size)
BoundedTreeSet
public BoundedTreeSet(Comparator<? super E> comparator,
int size)
add
public boolean add(E e)
- Specified by:
add
in interface Collection<E>
- Specified by:
add
in interface Set<E>
- Overrides:
add
in class TreeSet<E>
addAll
public boolean addAll(Collection<? extends E> c)
- Specified by:
addAll
in interface Collection<E>
- Specified by:
addAll
in interface Set<E>
- Overrides:
addAll
in class TreeSet<E>
Copyright © 2009-2012. All Rights Reserved.