public class DynamicSortedSet<E> extends DynamicSet<E> implements SortedSet<E>
DynamicCollection.DynamicIterator
iterators, iteratorsLock, storage
Constructor and Description |
---|
DynamicSortedSet() |
DynamicSortedSet(Collection<? extends E> c) |
DynamicSortedSet(Comparator<? super E> c) |
DynamicSortedSet(int size) |
DynamicSortedSet(SortedSet<E> ss) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
Comparator<? super E> |
comparator() |
E |
first() |
SortedSet<E> |
headSet(Object toElement) |
E |
last() |
boolean |
remove(Object o) |
SortedSet<E> |
subSet(Object fromElement,
Object toElement) |
SortedSet<E> |
tailSet(Object fromElement) |
addAll
add, clear, contains, containsAll, indexOf, isEmpty, iterator, remove, size, toArray, toArray, toString
removeAll, retainAll
public DynamicSortedSet()
public DynamicSortedSet(Collection<? extends E> c)
public DynamicSortedSet(int size)
public DynamicSortedSet(Comparator<? super E> c)
public Comparator<? super E> comparator()
comparator
in interface SortedSet<E>
public boolean add(E o)
add
in interface Collection<E>
add
in interface Set<E>
add
in class DynamicSet<E>
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class DynamicCollection<E>
Copyright © 2006-2013. All Rights Reserved.