FileDocCategorySizeDatePackage
TernarySearchTree1.javaAPI DocExample2282Wed Dec 16 15:25:52 GMT 1998tuning.struct

TernarySearchTree1

public class TernarySearchTree1 extends Object

Fields Summary
TernarySearchTreeNode1
root
char[]
buff
Constructors Summary
Methods Summary
public java.lang.Objectget(java.lang.String key)


     
  
    key.getChars(0, key.length(), buff, 0);
    return TernarySearchTreeNode1.search(root, buff, 0, key.length()-1);
  
public java.lang.Objectput(java.lang.String key, java.lang.Object value)

    key.getChars(0, key.length(), buff, 0);
    root = TernarySearchTreeNode1.insert(root, buff, 0, key.length()-1, value);
    return null; //fake it for now
  
public voidrelease()

if (root != null) {root.clean(); root = null;}