Package ghidra.generic.util.datastruct
Class RestrictedValueSortedMap.RestrictedValueSortedMapKeyList
java.lang.Object
ghidra.generic.util.datastruct.RestrictedValueSortedMap.RestrictedValueSortedMapKeyList
- All Implemented Interfaces:
ValueSortedMap.LesserList<K>
,ValueSortedMap.ValueSortedMapKeyList<K>
,Iterable<K>
- Enclosing class:
RestrictedValueSortedMap<K,
V>
public class RestrictedValueSortedMap.RestrictedValueSortedMapKeyList
extends Object
implements ValueSortedMap.ValueSortedMapKeyList<K>
A list view suitable for
ValueSortedMap.keySet()
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
-
RestrictedValueSortedMapKeyList
public RestrictedValueSortedMapKeyList()
-
-
Method Details
-
toList
Description copied from interface:ValueSortedMap.LesserList
Copy this to a new list- Specified by:
toList
in interfaceValueSortedMap.LesserList<K>
- Returns:
- the list
-
size
public int size()- Specified by:
size
in interfaceValueSortedMap.LesserList<K>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceValueSortedMap.LesserList<K>
-
contains
- Specified by:
contains
in interfaceValueSortedMap.LesserList<K>
-
iterator
-
get
Description copied from interface:ValueSortedMap.LesserList
Get the element at the given index- Specified by:
get
in interfaceValueSortedMap.LesserList<K>
- 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<K>
- Parameters:
o
- the object- Returns:
- the index or -1
-
listIterator
- Specified by:
listIterator
in interfaceValueSortedMap.LesserList<K>
-
poll
Description copied from interface:ValueSortedMap.LesserList
Get and remove the first element- Specified by:
poll
in interfaceValueSortedMap.LesserList<K>
- Returns:
- the first element, or null if empty
-
remove
- Specified by:
remove
in interfaceValueSortedMap.LesserList<K>
-