Package ghidra.generic.util.datastruct
Class TreeValueSortedMap.ValueSortedTreeMapKeySet
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
ghidra.generic.util.datastruct.TreeValueSortedMap.ValueSortedTreeMapKeySet
- All Implemented Interfaces:
ValueSortedMap.LesserList<K>,ValueSortedMap.ValueSortedMapKeyList<K>,Iterable<K>,Collection<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
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, 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.Set
add, addAll, containsAll, retainAll, spliterator, toArray, toArrayMethods inherited from interface ghidra.generic.util.datastruct.ValueSortedMap.LesserList
removeAll
-
Method Details
-
toList
Description copied from interface:ValueSortedMap.LesserListCopy this to a new list- Specified by:
toListin interfaceValueSortedMap.LesserList<K>- Returns:
- the list
-
clear
public void clear()- Specified by:
clearin interfaceCollection<K>- Specified by:
clearin interfaceSet<K>- Overrides:
clearin classAbstractCollection<K>
-
contains
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin interfaceSet<K>- Specified by:
containsin interfaceValueSortedMap.LesserList<K>- Overrides:
containsin classAbstractCollection<K>
-
get
Description copied from interface:ValueSortedMap.LesserListGet the element at the given index- Specified by:
getin interfaceValueSortedMap.LesserList<K>- Parameters:
index- the index- Returns:
- the element
-
indexOf
Description copied from interface:ValueSortedMap.LesserListGet the index of a given elementReturns the index of the element, or -1 if not found
- Specified by:
indexOfin interfaceValueSortedMap.LesserList<K>- Parameters:
o- the object- Returns:
- the index or -1
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<K>- Specified by:
isEmptyin interfaceSet<K>- Specified by:
isEmptyin interfaceValueSortedMap.LesserList<K>- Overrides:
isEmptyin classAbstractCollection<K>
-
listIterator
- Specified by:
listIteratorin interfaceValueSortedMap.LesserList<K>
-
iterator
-
poll
Description copied from interface:ValueSortedMap.LesserListGet and remove the first element- Specified by:
pollin interfaceValueSortedMap.LesserList<K>- Returns:
- the first element, or null if empty
-
remove
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceSet<K>- Specified by:
removein interfaceValueSortedMap.LesserList<K>- Overrides:
removein classAbstractCollection<K>
-
size
public int size()- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceSet<K>- Specified by:
sizein interfaceValueSortedMap.LesserList<K>- Specified by:
sizein classAbstractCollection<K>
-