MCPcopy Index your code
hub / github.com/apache/groovy / getTo

Method getTo

src/main/java/groovy/lang/IntRange.java:349–355  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

347 * {@inheritDoc}
348 */
349 @Override
350 public Integer getTo() {
351 if (from <= to) {
352 return (inclusiveRight == null || inclusiveRight) ? to : to - 1;
353 }
354 return (inclusiveLeft == null || inclusiveLeft) ? from : from - 1;
355 }
356
357 /**
358 * Returns the same as <code>getInclusiveRight</code>, kept here for backwards compatibility.

Callers 9

byMethod · 0.95
getToIntMethod · 0.95
containsWithinBoundsMethod · 0.95
getMethod · 0.95
sizeMethod · 0.95
containsMethod · 0.95
containsAllMethod · 0.95
stepMethod · 0.95
hashCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected