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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.LesserList
removeAll
-
Constructor Details
-
RestrictedValueSortedMapKeyList
public RestrictedValueSortedMapKeyList()
-
-
Method Details
-
toList
Description copied from interface:ValueSortedMap.LesserListCopy this to a new list- Specified by:
toListin interfaceValueSortedMap.LesserList<K>- Returns:
- the list
-
size
public int size()- Specified by:
sizein interfaceValueSortedMap.LesserList<K>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceValueSortedMap.LesserList<K>
-
contains
- Specified by:
containsin interfaceValueSortedMap.LesserList<K>
-
iterator
-
get
Description copied from interface:ValueSortedMap.LesserListGet the element at the given index- Specified by:
getin interfaceValueSortedMap.LesserList<K>- Parameters:
index- the index- Returns:
- the element
-
indexOf
Description copied from interface:ValueSortedMap.LesserListGet the index of a given elementReturns the index of the element, or -1 if not found
- Specified by:
indexOfin interfaceValueSortedMap.LesserList<K>- Parameters:
o- the object- Returns:
- the index or -1
-
listIterator
- Specified by:
listIteratorin interfaceValueSortedMap.LesserList<K>
-
poll
Description copied from interface:ValueSortedMap.LesserListGet and remove the first element- Specified by:
pollin interfaceValueSortedMap.LesserList<K>- Returns:
- the first element, or null if empty
-
remove
- Specified by:
removein interfaceValueSortedMap.LesserList<K>
-