Package ghidra.generic.util.datastruct
Class RestrictedValueSortedMap.RestrictedSortedList
java.lang.Object
ghidra.generic.util.datastruct.RestrictedValueSortedMap.RestrictedSortedList
- All Implemented Interfaces:
SortedList<V>,ValueSortedMap.LesserList<V>,Iterable<V>
- Enclosing class:
RestrictedValueSortedMap<K,V>
A list view suitable for
ValueSortedMap.values() of RestrictedValueSortedMap-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintceilingIndex(V element) Returns the least index in this list whose element is greater than or equal to the specified elementbooleanintfloorIndex(V element) Returns the greatest index in this list whose element is less than or equal to the specified elementget(int index) Get the element at the given indexinthigherIndex(V element) Returns the least index in this list whose element is strictly greater the specified elementintGet the index of a given elementbooleanisEmpty()iterator()listIterator(int index) intlowerIndex(V element) Returns the greatest index in this list whose element is strictly less than the specified elementpoll()Get and remove the first elementbooleanintsize()toList()Copy this to a new listMethods 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
-
RestrictedSortedList
public RestrictedSortedList()
-
-
Method Details
-
toList
Description copied from interface:ValueSortedMap.LesserListCopy this to a new list- Specified by:
toListin interfaceValueSortedMap.LesserList<V>- Returns:
- the list
-
size
public int size()- Specified by:
sizein interfaceValueSortedMap.LesserList<V>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceValueSortedMap.LesserList<V>
-
contains
- Specified by:
containsin interfaceValueSortedMap.LesserList<V>
-
iterator
-
get
Description copied from interface:ValueSortedMap.LesserListGet the element at the given index- Specified by:
getin interfaceValueSortedMap.LesserList<V>- 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<V>- Parameters:
o- the object- Returns:
- the index or -1
-
listIterator
- Specified by:
listIteratorin interfaceValueSortedMap.LesserList<V>
-
poll
Description copied from interface:ValueSortedMap.LesserListGet and remove the first element- Specified by:
pollin interfaceValueSortedMap.LesserList<V>- Returns:
- the first element, or null if empty
-
remove
- Specified by:
removein interfaceValueSortedMap.LesserList<V>
-
lowerIndex
Description copied from interface:SortedListReturns the greatest index in this list whose element is strictly less than the specified element- Specified by:
lowerIndexin interfaceSortedList<V>- Parameters:
element- the element to search for- Returns:
- the index of the found element, or -1
-
floorIndex
Description copied from interface:SortedListReturns the greatest index in this list whose element is less than or equal to the specified elementIf multiples of the specified element exist, this returns the least index of that element.
- Specified by:
floorIndexin interfaceSortedList<V>- Parameters:
element- the element to search for- Returns:
- the index of the found element, or -1
-
ceilingIndex
Description copied from interface:SortedListReturns the least index in this list whose element is greater than or equal to the specified elementIf multiples of the specified element exist, this returns the greatest index of that element.
- Specified by:
ceilingIndexin interfaceSortedList<V>- Parameters:
element- the element to search for- Returns:
- the index of the found element, or -1
-
higherIndex
Description copied from interface:SortedListReturns the least index in this list whose element is strictly greater the specified element- Specified by:
higherIndexin interfaceSortedList<V>- Parameters:
element- the element to search for- Returns:
- the index of the found element, or -1
-