Package ghidra.generic.util.datastruct
Class TreeValueSortedMap.ValueSortedTreeMapEntrySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<Map.Entry<K,V>>
ghidra.generic.util.datastruct.TreeValueSortedMap.ValueSortedTreeMapEntrySet
- All Implemented Interfaces:
ValueSortedMap.ValueSortedMapEntryList<K,,V> Iterable<Map.Entry<K,,V>> Collection<Map.Entry<K,,V>> Deque<Map.Entry<K,,V>> List<Map.Entry<K,,V>> Queue<Map.Entry<K,,V>> Set<Map.Entry<K,V>>
- Enclosing class:
- TreeValueSortedMap<K,
V>
protected class TreeValueSortedMap.ValueSortedTreeMapEntrySet
extends AbstractSet<Map.Entry<K,V>>
implements ValueSortedMap.ValueSortedMapEntryList<K,V>
-
Method Summary
Modifier and TypeMethodDescriptionvoidInserts (by copy) the entry into the owning map, ignoring indexbooleanInserts (by copy) the entry into the owning mapbooleanaddAll(int index, Collection<? extends Map.Entry<K, V>> c) Inserts (by copy) all entries in the collection, ignoring indexvoidInserts (by copy) the entry at its sorted position, not necessarily firstvoidInserts (by copy) the entry at its sorted position, not necessarily lastvoidclear()booleanelement()get(int index) getFirst()getLast()intbooleanisEmpty()iterator()intlistIterator(int index) booleanbooleanofferFirst(Map.Entry<K, V> e) Inserts (by copy) the entry at its sorted position, not necessarily firstbooleanInserts (by copy) the entry at its sorted position, not necessarily lastpeek()peekLast()poll()pollLast()pop()voidremove()remove(int index) booleanbooleanbooleanModify the entry (key and value) at index Because the map is sorted by value, the index of the given entry may not remain the same after it is modified.intsize()subList(int fromIndex, int toIndex) This operation is not supportedMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, equals, hashCode, removeAll, replaceAll, retainAll, sort, toArray, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayMethods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.ValueSortedMapEntryList
spliterator
-
Method Details
-
add
Inserts (by copy) the entry into the owning map- Specified by:
addin interfaceCollection<Map.Entry<K,V>> - Specified by:
addin interfaceDeque<Map.Entry<K,V>> - Specified by:
addin interfaceList<Map.Entry<K,V>> - Specified by:
addin interfaceQueue<Map.Entry<K,V>> - Specified by:
addin interfaceSet<Map.Entry<K,V>> - Overrides:
addin classAbstractCollection<Map.Entry<K,V>>
-
add
Inserts (by copy) the entry into the owning map, ignoring index -
addAll
Inserts (by copy) all entries in the collection, ignoring index -
addFirst
Inserts (by copy) the entry at its sorted position, not necessarily first -
addLast
Inserts (by copy) the entry at its sorted position, not necessarily last -
clear
public void clear() -
contains
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<Map.Entry<K,V>>
-
element
-
get
-
getFirst
-
getLast
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceCollection<Map.Entry<K,V>> - Specified by:
iteratorin interfaceDeque<Map.Entry<K,V>> - Specified by:
iteratorin interfaceIterable<Map.Entry<K,V>> - Specified by:
iteratorin interfaceList<Map.Entry<K,V>> - Specified by:
iteratorin interfaceSet<Map.Entry<K,V>> - Specified by:
iteratorin classAbstractCollection<Map.Entry<K,V>>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Map.Entry<K,V>>
-
listIterator
- Specified by:
listIteratorin interfaceList<Map.Entry<K,V>>
-
listIterator
- Specified by:
listIteratorin interfaceList<Map.Entry<K,V>>
-
offer
-
offerFirst
Inserts (by copy) the entry at its sorted position, not necessarily first- Specified by:
offerFirstin interfaceDeque<Map.Entry<K,V>>
-
offerLast
Inserts (by copy) the entry at its sorted position, not necessarily last -
peek
-
peekFirst
-
peekLast
-
poll
-
pollFirst
-
pollLast
-
pop
-
push
-
remove
-
remove
-
remove
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<Map.Entry<K,V>>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<Map.Entry<K,V>>
-
removeLast
- Specified by:
removeLastin interfaceDeque<Map.Entry<K,V>>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<Map.Entry<K,V>>
-
set
Modify the entry (key and value) at index Because the map is sorted by value, the index of the given entry may not remain the same after it is modified. In fact, this is equivalent to removing the entry at the given index, and then inserting the given entry at its sorted position. -
size
public int size() -
subList
This operation is not supported
-