Package ghidra.generic.util.datastruct
Class DynamicValueSortedTreeMap.ValueSortedTreeMapKeySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<K>
-
- ghidra.generic.util.datastruct.DynamicValueSortedTreeMap.ValueSortedTreeMapKeySet
-
- All Implemented Interfaces:
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:
- DynamicValueSortedTreeMap<K,V>
public class DynamicValueSortedTreeMap.ValueSortedTreeMapKeySet extends java.util.AbstractSet<K> implements java.util.List<K>, java.util.Deque<K>A public view of the map as a set of keys In addition toSet, this view implementsListandDeque, 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 voidadd(int index, K element)booleanadd(K e)booleanaddAll(int index, java.util.Collection<? extends K> c)booleanaddAll(java.util.Collection<? extends K> c)voidaddFirst(K e)voidaddLast(K e)voidclear()booleancontains(java.lang.Object o)java.util.Iterator<K>descendingIterator()Kelement()Kget(int index)KgetFirst()KgetLast()intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<K>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<K>listIterator()java.util.ListIterator<K>listIterator(int index)booleanoffer(K e)booleanofferFirst(K e)booleanofferLast(K e)Kpeek()KpeekFirst()KpeekLast()Kpoll()KpollFirst()KpollLast()Kpop()voidpush(K e)Kremove()Kremove(int index)booleanremove(java.lang.Object o)KremoveFirst()booleanremoveFirstOccurrence(java.lang.Object o)KremoveLast()booleanremoveLastOccurrence(java.lang.Object o)Kset(int index, K element)intsize()java.util.Spliterator<K>spliterator()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
-
-
-
-
Method Detail
-
add
public boolean add(K e)
- Specified by:
addin interfacejava.util.Collection<K>- Specified by:
addin interfacejava.util.Deque<K>- Specified by:
addin interfacejava.util.List<K>- Specified by:
addin interfacejava.util.Queue<K>- Specified by:
addin interfacejava.util.Set<K>- Overrides:
addin 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:
addAllin 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:
descendingIteratorin interfacejava.util.Deque<K>
-
element
public K element()
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<K>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<K>- Specified by:
iteratorin interfacejava.util.Deque<K>- Specified by:
iteratorin interfacejava.lang.Iterable<K>- Specified by:
iteratorin interfacejava.util.List<K>- Specified by:
iteratorin interfacejava.util.Set<K>- Specified by:
iteratorin classjava.util.AbstractCollection<K>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<K>
-
listIterator
public java.util.ListIterator<K> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<K>
-
listIterator
public java.util.ListIterator<K> listIterator(int index)
- Specified by:
listIteratorin 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:
removeFirstOccurrencein interfacejava.util.Deque<K>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object o)
- Specified by:
removeLastOccurrencein interfacejava.util.Deque<K>
-
size
public int size()
-
spliterator
public java.util.Spliterator<K> spliterator()
-
-