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 继承的方法 |
compareTo, compareTo, getChar, getStatus, getValue, hasChild, setValue, toString, transition, walk, walkToLoad, walkToSave |
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 码农场. All rights reserved.