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 voidadd(int index, V element)booleanadd(V e)booleanaddAll(int index, java.util.Collection<? extends V> c)booleanaddAll(java.util.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()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)intfloorIndex(V element)Returns the greatest index in this list whose element is less than or equal to the specified elementVget(int index)inthigherIndex(V element)Returns the least index in this list whose element is strictly greater the specified elementintindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<V>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<V>listIterator()java.util.ListIterator<V>listIterator(int index)intlowerIndex(V element)Returns the greatest index in this list whose element is strictly less than the specified elementVremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)Vset(int index, V element)intsize()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:
addAllin 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:
indexOfin interfacejava.util.List<V>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<V>
-
subList
public java.util.List<V> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<V>
-
lowerIndex
public int lowerIndex(V element)
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
public int floorIndex(V element)
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
public int ceilingIndex(V element)
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
public int higherIndex(V element)
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
-
-