com.hankcs.hanlp.collection.trie.bintrie.util
类 ArrayTool
java.lang.Object
com.hankcs.hanlp.collection.trie.bintrie.util.ArrayTool
public class ArrayTool
- extends Object
- 作者:
- He Han
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayTool
public ArrayTool()
binarySearch
public static int binarySearch(BaseNode[] branches,
BaseNode node)
- 二分查找
- 参数:
branches - 数组node - 要查找的node
- 返回:
- 数组下标,小于0表示没找到
binarySearch
public static int binarySearch(BaseNode[] branches,
char node)
Copyright © 2014–2015 码农场. All rights reserved.