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 TypeMethodDescriptionvoid
Inserts (by copy) the entry into the owning map, ignoring indexboolean
Inserts (by copy) the entry into the owning mapboolean
addAll
(int index, Collection<? extends Map.Entry<K, V>> c) Inserts (by copy) all entries in the collection, ignoring indexvoid
Inserts (by copy) the entry at its sorted position, not necessarily firstvoid
Inserts (by copy) the entry at its sorted position, not necessarily lastvoid
clear()
boolean
element()
get
(int index) getFirst()
getLast()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) boolean
boolean
offerFirst
(Map.Entry<K, V> e) Inserts (by copy) the entry at its sorted position, not necessarily firstboolean
Inserts (by copy) the entry at its sorted position, not necessarily lastpeek()
peekLast()
poll()
pollLast()
pop()
void
remove()
remove
(int index) boolean
boolean
boolean
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.int
size()
subList
(int fromIndex, int toIndex) This operation is not supportedMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, 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.List
addAll, containsAll, equals, hashCode, removeAll, replaceAll, retainAll, sort, toArray, toArray
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
Methods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.ValueSortedMapEntryList
spliterator
-
Method Details
-
add
Inserts (by copy) the entry into the owning map- Specified by:
add
in interfaceCollection<Map.Entry<K,
V>> - Specified by:
add
in interfaceDeque<Map.Entry<K,
V>> - Specified by:
add
in interfaceList<Map.Entry<K,
V>> - Specified by:
add
in interfaceQueue<Map.Entry<K,
V>> - Specified by:
add
in interfaceSet<Map.Entry<K,
V>> - Overrides:
add
in 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:
descendingIterator
in interfaceDeque<Map.Entry<K,
V>>
-
element
-
get
-
getFirst
-
getLast
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iterator
in interfaceCollection<Map.Entry<K,
V>> - Specified by:
iterator
in interfaceDeque<Map.Entry<K,
V>> - Specified by:
iterator
in interfaceIterable<Map.Entry<K,
V>> - Specified by:
iterator
in interfaceList<Map.Entry<K,
V>> - Specified by:
iterator
in interfaceSet<Map.Entry<K,
V>> - Specified by:
iterator
in classAbstractCollection<Map.Entry<K,
V>>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Map.Entry<K,
V>>
-
listIterator
- Specified by:
listIterator
in interfaceList<Map.Entry<K,
V>>
-
listIterator
- Specified by:
listIterator
in interfaceList<Map.Entry<K,
V>>
-
offer
-
offerFirst
Inserts (by copy) the entry at its sorted position, not necessarily first- Specified by:
offerFirst
in 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:
removeFirst
in interfaceDeque<Map.Entry<K,
V>>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<Map.Entry<K,
V>>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<Map.Entry<K,
V>>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in 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
-