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

Method Range

output/java_guava/1.4.18/Range.java:365–372  ·  view source on GitHub ↗
(Cut<C> lowerBound, Cut<C> upperBound)

Source from the content-addressed store, hash-verified

363 final Cut<C> upperBound;
364
365 private Range(Cut<C> lowerBound, Cut<C> upperBound) {
366 this.lowerBound = checkNotNull(lowerBound);
367 this.upperBound = checkNotNull(upperBound);
368 if (lowerBound.compareTo(upperBound) > 0 || lowerBound == Cut.<C>aboveAll()
369 || upperBound == Cut.<C>belowAll()) {
370 throw new IllegalArgumentException("Invalid range: " + toString(lowerBound, upperBound));
371 }
372 }
373
374 /**
375 * 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