MCPcopy Create free account
hub / github.com/antlr/codebuff / tooHigh

Method tooHigh

output/java_guava/1.4.17/GeneralRange.java:159–166  ·  view source on GitHub ↗
(@Nullable T t)

Source from the content-addressed store, hash-verified

157 }
158
159 boolean tooHigh(@Nullable T t) {
160 if (!hasUpperBound()) {
161 return false;
162 }
163 T ubound = getUpperEndpoint();
164 int cmp = comparator.compare(t, ubound);
165 return cmp > 0 | (cmp == 0 & getUpperBoundType() == OPEN);
166 }
167
168 boolean contains(@Nullable T t) {
169 return !tooLow(t) && !tooHigh(t);

Callers 3

isEmptyMethod · 0.95
containsMethod · 0.95
hasNextMethod · 0.45

Calls 4

hasUpperBoundMethod · 0.95
getUpperEndpointMethod · 0.95
getUpperBoundTypeMethod · 0.95
compareMethod · 0.45

Tested by

no test coverage detected