@InterfaceAudience.Private public class CellSet extends Object implements NavigableSet<Cell>
Set of Cells, where an add will overwrite the entry if already
exists in the set. The call to add returns true if no value in the backing map or false if
there was an entry with same key (though value may be different).
implementation is tolerant of concurrent get and set and won't throw
ConcurrentModificationException when iterating.| Modifier and Type | Field and Description |
|---|---|
private NavigableMap<Cell,Cell> |
delegatee |
private int |
numUniqueKeys |
static int |
UNKNOWN_NUM_UNIQUES |
| Constructor and Description |
|---|
CellSet(CellComparator c) |
CellSet(NavigableMap<Cell,Cell> m) |
CellSet(NavigableMap<Cell,Cell> m,
int numUniqueKeys) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitspliteratorparallelStream, removeIf, streampublic static final int UNKNOWN_NUM_UNIQUES
private final NavigableMap<Cell,Cell> delegatee
private final int numUniqueKeys
public CellSet(CellComparator c)
CellSet(NavigableMap<Cell,Cell> m, int numUniqueKeys)
CellSet(NavigableMap<Cell,Cell> m)
NavigableMap<Cell,Cell> getDelegatee()
public Iterator<Cell> descendingIterator()
descendingIterator in interface NavigableSet<Cell>public NavigableSet<Cell> descendingSet()
descendingSet in interface NavigableSet<Cell>public NavigableSet<Cell> headSet(Cell toElement, boolean inclusive)
headSet in interface NavigableSet<Cell>public Cell pollFirst()
pollFirst in interface NavigableSet<Cell>public Cell pollLast()
pollLast in interface NavigableSet<Cell>public NavigableSet<Cell> subSet(Cell fromElement, boolean fromInclusive, Cell toElement, boolean toInclusive)
subSet in interface NavigableSet<Cell>public NavigableSet<Cell> tailSet(Cell fromElement, boolean inclusive)
tailSet in interface NavigableSet<Cell>public Comparator<? super Cell> comparator()
comparator in interface SortedSet<Cell>public boolean addAll(Collection<? extends Cell> c)
public void clear()
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Cell>containsAll in interface Set<Cell>public boolean isEmpty()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public <T> T[] toArray(T[] a)
public int getNumUniqueKeys()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.