NLPchina / nlp-lang

这个项目是一个基本包.封装了大多数nlp项目中常用工具
Apache License 2.0
1.5k stars 501 forks source link

SmartForest.contains(char c) 方法 #42

Open finesoft opened 4 years ago

finesoft commented 4 years ago
public boolean contains(char c) {
    if (this.branches == null) {
        return false;
    }
    **return Arrays.binarySearch(this.branches, c) > -1; // 是否要改为 return Arrays.binarySearch(this.branches, new SmartForest<T>(c)) > -1;**
}
ansjsun commented 4 years ago

不同的应该重写了eq方法吧

在2020年08月05日 10:56,bingo 写道:

public boolean contains(char c) {

if (this.branches == null) {

    return false;

}

**return Arrays.binarySearch(this.branches, c) > -1; // 是否要改为 return Arrays.binarySearch(this.branches, new SmartForest<T>(c)) > -1;**

}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.