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

Method size

src/main/java/groovy/lang/NumberRange.java:481–487  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

479 * {@inheritDoc}
480 */
481 @Override
482 public int size() {
483 if (size == -1) {
484 calcSize(from, to, stepSize);
485 }
486 return size;
487 }
488
489 /**
490 * Calculates and caches the size for the supplied range parameters.

Callers

nothing calls this directly

Calls 1

calcSizeMethod · 0.95

Tested by

no test coverage detected