SmartForest.contains(char c) 方法
finesoft opened this issue · 1 comments
finesoft commented
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
不同的应该重写了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.