nlp-lang icon indicating copy to clipboard operation
nlp-lang copied to clipboard

SmartForest.contains(char c) 方法

Open finesoft opened this issue 5 years ago • 1 comments

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;**
}

finesoft avatar Aug 05 '20 02:08 finesoft

不同的应该重写了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.

ansjsun avatar Aug 05 '20 15:08 ansjsun