com.hankcs.hanlp.collection.trie.bintrie
类 Node<V>

java.lang.Object
  继承者 com.hankcs.hanlp.collection.trie.bintrie.BaseNode
      继承者 com.hankcs.hanlp.collection.trie.bintrie.Node<V>
所有已实现的接口:
Comparable

public class Node<V>
extends BaseNode

深度大于等于2的子节点

作者:
He Han

嵌套类摘要
 
从类 com.hankcs.hanlp.collection.trie.bintrie.BaseNode 继承的嵌套类/接口
BaseNode.Status, BaseNode.TrieEntry
 
字段摘要
 
从类 com.hankcs.hanlp.collection.trie.bintrie.BaseNode 继承的字段
c, child, status, value
 
构造方法摘要
Node()
           
Node(char c, BaseNode.Status status, V value)
           
 
方法摘要
protected  boolean addChild(BaseNode node)
          添加子节点
 BaseNode getChild(char c)
          获取子节点
 
从类 com.hankcs.hanlp.collection.trie.bintrie.BaseNode 继承的方法
compareTo, compareTo, getChar, getStatus, getValue, hasChild, setValue, toString, transition, walk, walkToLoad, walkToSave
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Node

public Node(char c,
            BaseNode.Status status,
            V value)
参数:
c - 节点的字符
status - 节点状态
value - 值

Node

public Node()
方法详细信息

addChild

protected boolean addChild(BaseNode node)
从类 BaseNode 复制的描述
添加子节点

指定者:
BaseNode 中的 addChild
返回:
true-新增了节点 false-修改了现有节点

getChild

public BaseNode getChild(char c)
从类 BaseNode 复制的描述
获取子节点

指定者:
BaseNode 中的 getChild
参数:
c - 子节点的char
返回:
子节点


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.