Modifier and Type | Class and Description |
---|---|
static interface |
AVLTree.Visitor<K,V> |
PMap.Consumer<K,V>
PSet.Consumer<E>
Constructor and Description |
---|
AVLTree() |
Modifier and Type | Method and Description |
---|---|
AVLTree<K,V> |
add(K e) |
boolean |
contains(K k) |
static <K,V> AVLTree<K,V> |
create() |
Iterator<Map.Entry<K,V>> |
entriesIterator()
Iterates over all elements.
|
void |
forEach(PMap.Consumer<K,V> consumer)
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
|
void |
forEach(PSet.Consumer<K> action)
Performs the given action for each entry in this set until all elements have been processed or the action throws an exception.
|
V |
get(K key) |
protected abstract int |
height() |
protected abstract Object |
key() |
protected abstract AVLTree |
left() |
AVLTree<K,V> |
put(K key,
V value) |
AVLTree<K,V> |
remove(K key) |
protected abstract AVLTree |
right() |
protected abstract Object |
value() |
public static <K,V> AVLTree<K,V> create()
public boolean contains(K k)
public void forEach(PSet.Consumer<K> action)
PSet
public void forEach(PMap.Consumer<K,V> consumer)
PMap
public Iterator<Map.Entry<K,V>> entriesIterator()
PMap
entriesIterator
in interface PMap<K,V>
protected abstract AVLTree left()
protected abstract AVLTree right()
protected abstract Object key()
protected abstract Object value()
protected abstract int height()
Copyright © 2012–2016 SonarSource. All rights reserved.