Package ghidra.generic.util.datastruct
Class TreeValueSortedMap.ValueSortedTreeMapKeySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<K>
ghidra.generic.util.datastruct.TreeValueSortedMap.ValueSortedTreeMapKeySet
- All Implemented Interfaces:
ValueSortedMap.ValueSortedMapKeyList<K>
,Iterable<K>
,Collection<K>
,Deque<K>
,List<K>
,Queue<K>
,Set<K>
- Enclosing class:
- TreeValueSortedMap<K,
V>
protected class TreeValueSortedMap.ValueSortedTreeMapKeySet
extends AbstractSet<K>
implements ValueSortedMap.ValueSortedMapKeyList<K>
A public view of the map as a set of keys
In addition to
Set
, this view implements List
and Deque
, since an
ordered set 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 K> c) boolean
addAll
(Collection<? extends K> c) void
void
void
clear()
boolean
element()
get
(int index) getFirst()
getLast()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) boolean
boolean
offerFirst
(K 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.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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, toArray, toArray
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
Methods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.ValueSortedMapKeyList
spliterator
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
addFirst
-
addLast
-
clear
public void clear() -
contains
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<K>
-
element
-
get
-
getFirst
-
getLast
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<K>
-
listIterator
- Specified by:
listIterator
in interfaceList<K>
-
listIterator
- Specified by:
listIterator
in interfaceList<K>
-
offer
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<K>
-
offerLast
-
peek
-
peekFirst
-
peekLast
-
poll
-
pollFirst
-
pollLast
-
pop
-
push
-
remove
-
remove
-
remove
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<K>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<K>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<K>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<K>
-
set
-
size
public int size() -
subList
This operation is not supported
-