Package ghidra.generic.util.datastruct
Class RestrictedValueSortedMap.RestrictedSortedList
- java.lang.Object
-
- ghidra.generic.util.datastruct.RestrictedValueSortedMap.RestrictedSortedList
-
- All Implemented Interfaces:
SortedList<V>
,java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.List<V>
- Enclosing class:
- RestrictedValueSortedMap<K,V>
public class RestrictedValueSortedMap.RestrictedSortedList extends java.lang.Object implements SortedList<V>
A list view suitable forValueSortedMap.values()
ofRestrictedValueSortedMap
-
-
Constructor Summary
Constructors Constructor Description RestrictedSortedList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, V element)
boolean
add(V e)
boolean
addAll(int index, java.util.Collection<? extends V> c)
boolean
addAll(java.util.Collection<? extends V> c)
int
ceilingIndex(V element)
Returns the least index in this list whose element is greater than or equal to the specified elementvoid
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
int
floorIndex(V element)
Returns the greatest index in this list whose element is less than or equal to the specified elementV
get(int index)
int
higherIndex(V element)
Returns the least index in this list whose element is strictly greater the specified elementint
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<V>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<V>
listIterator()
java.util.ListIterator<V>
listIterator(int index)
int
lowerIndex(V element)
Returns the greatest index in this list whose element is strictly less than the specified elementV
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
V
set(int index, V element)
int
size()
java.util.List<V>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<V> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(V e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends V> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends V> c)
- Specified by:
addAll
in interfacejava.util.List<V>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
clear
public void clear()
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<V>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<V>
-
subList
public java.util.List<V> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<V>
-
lowerIndex
public int lowerIndex(V element)
Description copied from interface:SortedList
Returns the greatest index in this list whose element is strictly less than the specified element- Specified by:
lowerIndex
in interfaceSortedList<V>
- Parameters:
element
- the element to search for- Returns:
- the index of the found element, or -1
-
floorIndex
public int floorIndex(V element)
Description copied from interface:SortedList
Returns 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:
floorIndex
in interfaceSortedList<V>
- Parameters:
element
- the element to search for- Returns:
- the index of the found element, or -1
-
ceilingIndex
public int ceilingIndex(V element)
Description copied from interface:SortedList
Returns 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:
ceilingIndex
in interfaceSortedList<V>
- Parameters:
element
- the element to search for- Returns:
- the index of the found element, or -1
-
higherIndex
public int higherIndex(V element)
Description copied from interface:SortedList
Returns the least index in this list whose element is strictly greater the specified element- Specified by:
higherIndex
in interfaceSortedList<V>
- Parameters:
element
- the element to search for- Returns:
- the index of the found element, or -1
-
-