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 TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends K> c) booleanaddAll(Collection<? extends K> c) voidvoidvoidclear()booleanelement()get(int index) getFirst()getLast()intbooleanisEmpty()iterator()intlistIterator(int index) booleanbooleanofferFirst(K 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.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, 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, toArray, toArrayMethods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayMethods 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:
descendingIteratorin interfaceDeque<K>
-
element
-
get
-
getFirst
-
getLast
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<K>
-
listIterator
- Specified by:
listIteratorin interfaceList<K>
-
listIterator
- Specified by:
listIteratorin interfaceList<K>
-
offer
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<K>
-
offerLast
-
peek
-
peekFirst
-
peekLast
-
poll
-
pollFirst
-
pollLast
-
pop
-
push
-
remove
-
remove
-
remove
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<K>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<K>
-
removeLast
- Specified by:
removeLastin interfaceDeque<K>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<K>
-
set
-
size
public int size() -
subList
This operation is not supported
-