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

Method Range

corpus/java/training/guava/collect/Range.java:346–354  ·  view source on GitHub ↗
(Cut<C> lowerBound, Cut<C> upperBound)

Source from the content-addressed store, hash-verified

344 final Cut<C> upperBound;
345
346 private Range(Cut<C> lowerBound, Cut<C> upperBound) {
347 this.lowerBound = checkNotNull(lowerBound);
348 this.upperBound = checkNotNull(upperBound);
349 if (lowerBound.compareTo(upperBound) > 0
350 || lowerBound == Cut.<C>aboveAll()
351 || upperBound == Cut.<C>belowAll()) {
352 throw new IllegalArgumentException("Invalid range: " + toString(lowerBound, upperBound));
353 }
354 }
355
356 /**
357 * Returns {@code true} if this range has a lower endpoint.

Callers

nothing calls this directly

Calls 5

aboveAllMethod · 0.95
belowAllMethod · 0.95
toStringMethod · 0.95
checkNotNullMethod · 0.45
compareToMethod · 0.45

Tested by

no test coverage detected