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

Method withLowerBoundType

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

Source from the content-addressed store, hash-verified

397 }
398
399 @Override
400 Cut<C> withLowerBoundType(BoundType boundType, DiscreteDomain<C> domain) {
401 switch (boundType) {
402 case OPEN:
403 return this;
404 case CLOSED:
405 @Nullable C next = domain.next(endpoint);
406return (next == null) ? Cut.<C>belowAll() : belowValue(next);
407 default:
408 throw new AssertionError();
409 }
410 }
411
412 @Override
413 Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain) {

Callers

nothing calls this directly

Calls 3

belowAllMethod · 0.95
nextMethod · 0.65
belowValueMethod · 0.45

Tested by

no test coverage detected