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

Method withUpperBoundType

output/java_guava/1.4.18/Cut.java:412–423  ·  view source on GitHub ↗
(BoundType boundType, DiscreteDomain<C> domain)

Source from the content-addressed store, hash-verified

410 }
411
412 @Override
413 Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain) {
414 switch (boundType) {
415 case OPEN:
416 @Nullable C next = domain.next(endpoint);
417return (next == null) ? Cut.<C>aboveAll() : belowValue(next);
418 case CLOSED:
419 return this;
420 default:
421 throw new AssertionError();
422 }
423 }
424
425 @Override
426 void describeAsLowerBound(StringBuilder sb) {

Callers

nothing calls this directly

Calls 3

aboveAllMethod · 0.95
nextMethod · 0.65
belowValueMethod · 0.45

Tested by

no test coverage detected