Module com.iamsoft.util.ui
Class TreeEntrySet<K extends Comparable,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<Map.Entry<K,V>>
-
- com.iamsoft.util.ui.swing.nameditem.TreeEntrySet<K,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
Constructors Modifier Constructor Description TreeEntrySet()
Deprecated.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
add(Map.Entry<K,V> pEntry)
Deprecated.Map.Entry<K,V>
ceiling(Map.Entry<K,V> pEntry)
Deprecated.Comparator<? super Map.Entry<? extends K,?>>
comparator()
Deprecated.Iterator<Map.Entry<K,V>>
descendingIterator()
Deprecated.Map.Entry<K,V>
first()
Deprecated.Map.Entry<K,V>
floor(Map.Entry<K,V> pEntry)
Deprecated.Map.Entry<K,V>
get(int pIdx)
Deprecated.Retrieve item at specified index.protected Comparator<? super K>
getKeyComparator()
Deprecated.TreeEntrySet<K,V>
headSet(Map.Entry<K,V> pToElement)
Deprecated.Map.Entry<K,V>
higher(Map.Entry<K,V> pEntry)
Deprecated.Iterator<Map.Entry<K,V>>
iterator()
Deprecated.Map.Entry<K,V>
last()
Deprecated.Map.Entry<K,V>
lower(Map.Entry<K,V> pEntry)
Deprecated.TreeEntrySet<K,V>
navigableHeadSet(Map.Entry<K,V> pToElement)
Deprecated.TreeEntrySet<K,V>
navigableSubSet(Map.Entry<K,V> pFromElement, Map.Entry<K,V> pToElement)
Deprecated.TreeEntrySet<K,V>
navigableTailSet(Map.Entry<K,V> pFromElement)
Deprecated.Map.Entry<K,V>
pollFirst()
Deprecated.Map.Entry<K,V>
pollLast()
Deprecated.int
size()
Deprecated.TreeEntrySet<K,V>
subSet(Map.Entry<K,V> pFromElement, Map.Entry<K,V> pToElement)
Deprecated.TreeEntrySet<K,V>
tailSet(Map.Entry<K,V> pFromElement)
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 Detail
-
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 Detail
-
add
public boolean add(Map.Entry<K,V> pEntry)
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
public Iterator<Map.Entry<K,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>>
-
getKeyComparator
protected Comparator<? super K> getKeyComparator()
Deprecated.
-
comparator
public Comparator<? super Map.Entry<? extends K,?>> comparator()
Deprecated.- Specified by:
comparator
in interfaceSortedSet<K extends Comparable>
-
get
public Map.Entry<K,V> get(int pIdx)
Deprecated.Retrieve item at specified index.- Throws:
IndexOutOfBoundsException
- If item does not exist.
-
first
public Map.Entry<K,V> first()
Deprecated.- Specified by:
first
in interfaceSortedSet<K extends Comparable>
-
last
public Map.Entry<K,V> last()
Deprecated.- Specified by:
last
in interfaceSortedSet<K extends Comparable>
-
subSet
public TreeEntrySet<K,V> subSet(Map.Entry<K,V> pFromElement, Map.Entry<K,V> pToElement)
Deprecated.- Specified by:
subSet
in interfaceSortedSet<K extends Comparable>
-
headSet
public TreeEntrySet<K,V> headSet(Map.Entry<K,V> pToElement)
Deprecated.- Specified by:
headSet
in interfaceSortedSet<K extends Comparable>
-
tailSet
public TreeEntrySet<K,V> tailSet(Map.Entry<K,V> pFromElement)
Deprecated.- Specified by:
tailSet
in interfaceSortedSet<K extends Comparable>
-
navigableSubSet
public TreeEntrySet<K,V> navigableSubSet(Map.Entry<K,V> pFromElement, Map.Entry<K,V> pToElement)
Deprecated.
-
navigableHeadSet
public TreeEntrySet<K,V> navigableHeadSet(Map.Entry<K,V> pToElement)
Deprecated.
-
-