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

Method size

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

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

434 * {@inheritDoc}
435 */
436 @Override
437 public int size() {
438 // If fully exclusive and borders are one apart, the size would be negative, take that into account
439 return Math.max(getTo() - getFrom() + 1, 0);
440 }
441
442 /**
443 * {@inheritDoc}

Callers 2

getMethod · 0.95
subListMethod · 0.95

Calls 3

getToMethod · 0.95
getFromMethod · 0.95
maxMethod · 0.65

Tested by

no test coverage detected