Module com.iamsoft.util.ui
Class TreeEntrySet<K extends Comparable,V>
- Type Parameters:
K
- Key type.V
- Value type.
- All Implemented Interfaces:
Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
,V>> Set<Map.Entry<K,
,V>> SortedSet<Map.Entry<K,
V>>
@Deprecated
public class TreeEntrySet<K extends Comparable,V>
extends AbstractSet<Map.Entry<K,V>>
implements SortedSet<Map.Entry<K,V>>
Deprecated.
Deprecated.
Navigable set of map entries. Generally used to back a map implementation.
This set rejects null values entries but accepts entries with the null key.
Items are sorted by entry key and then by the identity hash code of the entry value.
For both comparisons, null comes before any object. Note that, if an instance of this
class is used to back a map, it is up to the client to prevent duplicate keys.
TODO: better concurrent modification trapping.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.protected
TreeEntrySet
(TreeEntrySet<K, V> pParent, Map.Entry<? extends K, ? extends V> pLowerBound, Map.Entry<? extends K, ? extends V> pUpperBound) Deprecated.Create an entry set which reveals only a subset of its data. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Comparator<? super Map.Entry<? extends K,
?>> Deprecated.Deprecated.first()
Deprecated.Deprecated.get
(int pIdx) Deprecated.Retrieve item at specified index.protected Comparator<? super K>
Deprecated.Deprecated.Deprecated.iterator()
Deprecated.last()
Deprecated.Deprecated.navigableHeadSet
(Map.Entry<K, V> pToElement) Deprecated.Deprecated.navigableTailSet
(Map.Entry<K, V> pFromElement) Deprecated.Deprecated.pollLast()
Deprecated.int
size()
Deprecated.Deprecated.Deprecated.Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from interface java.util.SortedSet
spliterator
-
Constructor Details
-
TreeEntrySet
public TreeEntrySet()Deprecated. -
TreeEntrySet
protected TreeEntrySet(TreeEntrySet<K, V> pParent, Map.Entry<? extends K, ? extends V> pLowerBound, Map.Entry<? extends K, ? extends V> pUpperBound) Deprecated.Create an entry set which reveals only a subset of its data. Attempts to insert into this set will fail if the proposed addition falls outside the bounded range. nulls indicate that no bounding is necessary. The bounding range is the intersection between the specified range and the parent's range.- Parameters:
pParent
- Parent set which backs new instance.pLowerBound
- Inclusive minimum entry.pUpperBound
- Exclusive maximum entry.
-
-
Method Details
-
add
Deprecated.- Specified by:
add
in interfaceCollection<K extends Comparable>
- Specified by:
add
in interfaceSet<K extends Comparable>
- Overrides:
add
in classAbstractCollection<Map.Entry<K extends Comparable,
V>>
-
size
public int size()Deprecated.- Specified by:
size
in interfaceCollection<K extends Comparable>
- Specified by:
size
in interfaceSet<K extends Comparable>
- Specified by:
size
in classAbstractCollection<Map.Entry<K extends Comparable,
V>>
-
iterator
Deprecated.- Specified by:
iterator
in interfaceCollection<K extends Comparable>
- Specified by:
iterator
in interfaceIterable<K extends Comparable>
- Specified by:
iterator
in interfaceSet<K extends Comparable>
- Specified by:
iterator
in classAbstractCollection<Map.Entry<K extends Comparable,
V>>
-
descendingIterator
Deprecated. -
getKeyComparator
Deprecated. -
comparator
Deprecated.- Specified by:
comparator
in interfaceSortedSet<K extends Comparable>
-
get
Deprecated.Retrieve item at specified index.- Throws:
IndexOutOfBoundsException
- If item does not exist.
-
first
Deprecated.- Specified by:
first
in interfaceSortedSet<K extends Comparable>
-
last
Deprecated.- Specified by:
last
in interfaceSortedSet<K extends Comparable>
-
pollFirst
Deprecated. -
pollLast
Deprecated. -
ceiling
Deprecated. -
floor
Deprecated. -
higher
Deprecated. -
lower
Deprecated. -
subSet
Deprecated.- Specified by:
subSet
in interfaceSortedSet<K extends Comparable>
-
headSet
Deprecated.- Specified by:
headSet
in interfaceSortedSet<K extends Comparable>
-
tailSet
Deprecated.- Specified by:
tailSet
in interfaceSortedSet<K extends Comparable>
-