Package ghidra.generic.util.datastruct
Class DynamicValueSortedTreeMap.ValueSortedTreeMapValues
- java.lang.Object
-
- java.util.AbstractCollection<V>
-
- ghidra.generic.util.datastruct.DynamicValueSortedTreeMap.ValueSortedTreeMapValues
-
- All Implemented Interfaces:
java.lang.Iterable<V>,java.util.Collection<V>,java.util.Deque<V>,java.util.List<V>,java.util.Queue<V>
- Enclosing class:
- DynamicValueSortedTreeMap<K,V>
public class DynamicValueSortedTreeMap.ValueSortedTreeMapValues extends java.util.AbstractCollection<V> implements java.util.List<V>, java.util.Deque<V>A public view of the map as a list of values This view implementsListandDeque, since an ordered collection 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, V element)booleanadd(V e)booleanaddAll(int index, java.util.Collection<? extends V> c)booleanaddAll(java.util.Collection<? extends V> c)voidaddFirst(V e)voidaddLast(V e)voidclear()booleancontains(java.lang.Object o)java.util.Iterator<V>descendingIterator()Velement()Vget(int index)VgetFirst()VgetLast()intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<V>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<V>listIterator()java.util.ListIterator<V>listIterator(int index)booleanoffer(V e)booleanofferFirst(V e)booleanofferLast(V e)Vpeek()VpeekFirst()VpeekLast()Vpoll()VpollFirst()VpollLast()Vpop()voidpush(V e)Vremove()Vremove(int index)booleanremove(java.lang.Object o)VremoveFirst()booleanremoveFirstOccurrence(java.lang.Object o)VremoveLast()booleanremoveLastOccurrence(java.lang.Object o)Vset(int index, V element)intsize()java.util.List<V>subList(int fromIndex, int toIndex)This operation is not supported-
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
add
public boolean add(V e)
-
addAll
public boolean addAll(java.util.Collection<? extends V> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends V> c)- Specified by:
addAllin interfacejava.util.List<V>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
descendingIterator
public java.util.Iterator<V> descendingIterator()
- Specified by:
descendingIteratorin interfacejava.util.Deque<V>
-
element
public V element()
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<V>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<V> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<V>
-
offer
public boolean offer(V e)
-
peek
public V peek()
-
poll
public V poll()
-
remove
public V remove()
-
remove
public boolean remove(java.lang.Object o)
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object o)
- Specified by:
removeFirstOccurrencein interfacejava.util.Deque<V>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object o)
- Specified by:
removeLastOccurrencein interfacejava.util.Deque<V>
-
size
public int size()
-
-