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

构造方法摘要
ArrayTool()
           
 
方法摘要
static int binarySearch(BaseNode[] branches, BaseNode node)
          二分查找
static int binarySearch(BaseNode[] branches, char node)
           
 
从类 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 鐮佸啘鍦�/a>. All rights reserved.