Package ghidra.generic.util.datastruct
Class RestrictedValueSortedMap.RestrictedSortedList
java.lang.Object
ghidra.generic.util.datastruct.RestrictedValueSortedMap.RestrictedSortedList
- All Implemented Interfaces:
SortedList<V>,Iterable<V>,Collection<V>,List<V>
- Enclosing class:
- RestrictedValueSortedMap<K,
V>
A list view suitable for
ValueSortedMap.values() of RestrictedValueSortedMap-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends V> c) booleanaddAll(Collection<? extends V> c) intceilingIndex(V element) Returns the least index in this list whose element is greater than or equal to the specified elementvoidclear()booleanbooleancontainsAll(Collection<?> c) intfloorIndex(V element) Returns the greatest index in this list whose element is less than or equal to the specified elementget(int index) inthigherIndex(V element) Returns the least index in this list whose element is strictly greater the specified elementintbooleanisEmpty()iterator()intlistIterator(int index) intlowerIndex(V element) Returns the greatest index in this list whose element is strictly less than the specified elementremove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
RestrictedSortedList
public RestrictedSortedList()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<V>- Specified by:
containsAllin interfaceList<V>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
subList
-
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
-