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>
,java.lang.Iterable<K>
,java.util.Collection<K>
,java.util.Deque<K>
,java.util.List<K>
,java.util.Queue<K>
,java.util.Set<K>
- Enclosing class:
- TreeValueSortedMap<K,V>
protected class TreeValueSortedMap.ValueSortedTreeMapKeySet extends java.util.AbstractSet<K> implements ValueSortedMap.ValueSortedMapKeyList<K>
A public view of the map as a set of keys In addition toSet
, this view implementsList
andDeque
, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, K element)
boolean
add(K e)
boolean
addAll(int index, java.util.Collection<? extends K> c)
boolean
addAll(java.util.Collection<? extends K> c)
void
addFirst(K e)
void
addLast(K e)
void
clear()
boolean
contains(java.lang.Object o)
java.util.Iterator<K>
descendingIterator()
K
element()
K
get(int index)
K
getFirst()
K
getLast()
int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<K>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<K>
listIterator()
java.util.ListIterator<K>
listIterator(int index)
boolean
offer(K e)
boolean
offerFirst(K e)
boolean
offerLast(K e)
K
peek()
K
peekFirst()
K
peekLast()
K
poll()
K
pollFirst()
K
pollLast()
K
pop()
void
push(K e)
K
remove()
K
remove(int index)
boolean
remove(java.lang.Object o)
K
removeFirst()
boolean
removeFirstOccurrence(java.lang.Object o)
K
removeLast()
boolean
removeLastOccurrence(java.lang.Object o)
K
set(int index, K element)
int
size()
java.util.List<K>
subList(int fromIndex, int toIndex)
This operation is not supported-
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.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 Detail
-
add
public boolean add(K e)
- Specified by:
add
in interfacejava.util.Collection<K>
- Specified by:
add
in interfacejava.util.Deque<K>
- Specified by:
add
in interfacejava.util.List<K>
- Specified by:
add
in interfacejava.util.Queue<K>
- Specified by:
add
in interfacejava.util.Set<K>
- Overrides:
add
in classjava.util.AbstractCollection<K>
-
addAll
public boolean addAll(java.util.Collection<? extends K> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends K> c)
- Specified by:
addAll
in interfacejava.util.List<K>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
descendingIterator
public java.util.Iterator<K> descendingIterator()
- Specified by:
descendingIterator
in interfacejava.util.Deque<K>
-
element
public K element()
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<K>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<K>
- Specified by:
iterator
in interfacejava.util.Deque<K>
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
- Specified by:
iterator
in interfacejava.util.List<K>
- Specified by:
iterator
in interfacejava.util.Set<K>
- Specified by:
iterator
in classjava.util.AbstractCollection<K>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<K>
-
listIterator
public java.util.ListIterator<K> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<K>
-
listIterator
public java.util.ListIterator<K> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<K>
-
offer
public boolean offer(K e)
-
peek
public K peek()
-
poll
public K poll()
-
remove
public K remove()
-
remove
public boolean remove(java.lang.Object o)
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object o)
- Specified by:
removeFirstOccurrence
in interfacejava.util.Deque<K>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object o)
- Specified by:
removeLastOccurrence
in interfacejava.util.Deque<K>
-
size
public int size()
-
-