mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 09:54:55 +00:00
This commit is contained in:
parent
df93f46888
commit
8e67ec8647
@ -129,5 +129,18 @@ public abstract class CardinalityUpperBound {
|
|||||||
public <R> R map(IntFunction<R> mapper) {
|
public <R> R map(IntFunction<R> mapper) {
|
||||||
return mapper.apply(estimate);
|
return mapper.apply(estimate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
KnownCardinalityUpperBound that = (KnownCardinalityUpperBound) o;
|
||||||
|
return estimate == that.estimate;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Integer.hashCode(estimate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user