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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends V> c) boolean
addAll
(Collection<? extends V> c) void
void
int
ceilingIndex
(V element) Returns the least index in this list whose element is greater than or equal to the specified elementvoid
clear()
boolean
element()
int
floorIndex
(V element) Returns the greatest index in this list whose element is less than or equal to the specified elementget
(int index) getFirst()
getLast()
int
higherIndex
(V element) Returns the least index in this list whose element is strictly greater the specified elementint
boolean
isEmpty()
iterator()
int
listIterator
(int index) int
lowerIndex
(V element) Returns the greatest index in this list whose element is strictly less than the specified elementboolean
boolean
offerFirst
(V e) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
remove
(int index) boolean
boolean
boolean
int
size()
subList
(int fromIndex, int toIndex) This operation is not supportedMethods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
clear
in interfaceCollection<V>
- Specified by:
clear
in interfaceList<V>
- Overrides:
clear
in classAbstractCollection<V>
-
contains
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<V>
-
element
-
get
-
getFirst
-
getLast
-
indexOf
-
lowerIndex
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
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
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
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
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<V>
- Specified by:
isEmpty
in interfaceList<V>
- Overrides:
isEmpty
in classAbstractCollection<V>
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<V>
-
listIterator
- Specified by:
listIterator
in interfaceList<V>
-
listIterator
- Specified by:
listIterator
in interfaceList<V>
-
offer
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<V>
-
offerLast
-
peek
-
peekFirst
-
peekLast
-
poll
-
pollFirst
-
pollLast
-
pop
-
push
-
remove
-
remove
-
remove
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<V>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<V>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<V>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<V>
-
set
-
size
public int size() -
subList
This operation is not supported
-