Package ghidra.generic.util.datastruct
Class RestrictedValueSortedMap.RestrictedValueSortedMapEntryList
java.lang.Object
ghidra.generic.util.datastruct.RestrictedValueSortedMap.RestrictedValueSortedMapEntryList
- All Implemented Interfaces:
ValueSortedMap.LesserList<Map.Entry<K,
,V>> ValueSortedMap.ValueSortedMapEntryList<K,
,V> Iterable<Map.Entry<K,
V>>
- Enclosing class:
RestrictedValueSortedMap<K,
V>
public class RestrictedValueSortedMap.RestrictedValueSortedMapEntryList
extends Object
implements ValueSortedMap.ValueSortedMapEntryList<K,V>
A list view suitable for
ValueSortedMap.entrySet()
of
RestrictedValueSortedMap
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.LesserList
removeAll
-
Constructor Details
-
RestrictedValueSortedMapEntryList
public RestrictedValueSortedMapEntryList()
-
-
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
-
size
public int size()- Specified by:
size
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>>
-
contains
- Specified by:
contains
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>>
-
iterator
-
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
-
listIterator
- Specified by:
listIterator
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>>
-
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
- Specified by:
remove
in interfaceValueSortedMap.LesserList<Map.Entry<K,
V>>
-