Package ghidra.generic.util.datastruct
Class TreeValueSortedMap.ValueSortedTreeMapValues
java.lang.Object
java.util.AbstractCollection<V>
ghidra.generic.util.datastruct.TreeValueSortedMap.ValueSortedTreeMapValues
- All Implemented Interfaces:
SortedList<V>,Iterable<V>,Collection<V>,Deque<V>,List<V>,Queue<V>
- Enclosing class:
- TreeValueSortedMap<K,
V>
protected class TreeValueSortedMap.ValueSortedTreeMapValues
extends AbstractCollection<V>
implements SortedList<V>, Deque<V>
A public view of the map as a list of values
This view implements
SortedList and Deque, since an ordered collection ought
to behave like a list, and since this implementation is meant to be used as a dynamic-cost
priority queue.
Generally, only the removal mutation methods are supported, all others are not supported.-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends V> c) booleanaddAll(Collection<? extends V> c) voidvoidintceilingIndex(V element) Returns the least index in this list whose element is greater than or equal to the specified elementvoidclear()booleanelement()intfloorIndex(V element) Returns the greatest index in this list whose element is less than or equal to the specified elementget(int index) getFirst()getLast()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 elementbooleanbooleanofferFirst(V e) booleanpeek()peekLast()poll()pollLast()pop()voidremove()remove(int index) booleanbooleanbooleanintsize()subList(int fromIndex, int toIndex) This operation is not supportedMethods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, equals, hashCode, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
addFirst
-
addLast
-
clear
public void clear()- Specified by:
clearin interfaceCollection<V>- Specified by:
clearin interfaceList<V>- Overrides:
clearin classAbstractCollection<V>
-
contains
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<V>
-
element
-
get
-
getFirst
-
getLast
-
indexOf
-
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
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<V>- Specified by:
isEmptyin interfaceList<V>- Overrides:
isEmptyin classAbstractCollection<V>
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
offer
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<V>
-
offerLast
-
peek
-
peekFirst
-
peekLast
-
poll
-
pollFirst
-
pollLast
-
pop
-
push
-
remove
-
remove
-
remove
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<V>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<V>
-
removeLast
- Specified by:
removeLastin interfaceDeque<V>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<V>
-
set
-
size
public int size() -
subList
This operation is not supported
-