com.github.andrewoma.dexx.collection.internal.redblack
Class AbstractTree<K,V>
java.lang.Object
com.github.andrewoma.dexx.collection.internal.redblack.AbstractTree<K,V>
- All Implemented Interfaces:
- Tree<K,V>
- Direct Known Subclasses:
- AbstractDerivedKeyTree
public abstract class AbstractTree<K,V>
- extends Object
- implements Tree<K,V>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.github.andrewoma.dexx.collection.internal.redblack.Tree |
black, red |
AbstractTree
protected AbstractTree(Tree<K,V> left,
Tree<K,V> right,
V value)
count
public int count()
- Specified by:
count in interface Tree<K,V>
getKey
public abstract K getKey(KeyFunction<K,V> keyFunction)
- Specified by:
getKey in interface Tree<K,V>
getValue
public V getValue()
- Specified by:
getValue in interface Tree<K,V>
getLeft
public Tree<K,V> getLeft()
- Specified by:
getLeft in interface Tree<K,V>
getRight
public Tree<K,V> getRight()
- Specified by:
getRight in interface Tree<K,V>
Copyright © 2014. All Rights Reserved.