Package ghidra.generic.util.datastruct
Class TreeValueSortedMap.ValueSortedTreeMapEntrySet
java.lang.Object
java.util.AbstractCollection<Map.Entry<K,V>>
java.util.AbstractSet<Map.Entry<K,V>>
ghidra.generic.util.datastruct.TreeValueSortedMap.ValueSortedTreeMapEntrySet
- All Implemented Interfaces:
ValueSortedMap.LesserList<Map.Entry<K,
,V>> ValueSortedMap.ValueSortedMapEntryList<K,
,V> Iterable<Map.Entry<K,
,V>> Collection<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 TypeMethodDescriptionboolean
Inserts (by copy) the entry into the owning mapvoid
clear()
boolean
get
(int index) Get the element at the given indexint
Get the index of a given elementboolean
isEmpty()
iterator()
listIterator
(int index) poll()
Get and remove the first elementboolean
int
size()
toList()
Copy this to a new listMethods 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.Set
addAll, containsAll, retainAll, spliterator, toArray, toArray
Methods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.LesserList
removeAll
-
Method Details
-
toList
Description copied from interface:ValueSortedMap.LesserList
Copy this to a new list- Specified by:
toList
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>> - Returns:
- the list
-
add
Inserts (by copy) the entry into the owning map -
clear
public void clear() -
contains
-
get
Description copied from interface:ValueSortedMap.LesserList
Get the element at the given index- Specified by:
get
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>> - Parameters:
index
- the index- Returns:
- the element
-
indexOf
Description copied from interface:ValueSortedMap.LesserList
Get the index of a given elementReturns the index of the element, or -1 if not found
- Specified by:
indexOf
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>> - Parameters:
o
- the object- Returns:
- the index or -1
-
isEmpty
public boolean isEmpty() -
listIterator
- Specified by:
listIterator
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>>
-
iterator
-
poll
Description copied from interface:ValueSortedMap.LesserList
Get and remove the first element- Specified by:
poll
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>> - Returns:
- the first element, or null if empty
-
remove
-
size
public int size()
-