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

Method isIntegral

src/main/java/groovy/lang/NumberRange.java:545–548  ·  view source on GitHub ↗
(Number stepSize)

Source from the content-addressed store, hash-verified

543 }
544
545 private boolean isIntegral(Number stepSize) {
546 BigDecimal tempStepSize = NumberMath.toBigDecimal(stepSize);
547 return tempStepSize.equals(new BigDecimal(tempStepSize.toBigInteger()));
548 }
549
550 /**
551 * {@inheritDoc}

Callers 1

calcSizeMethod · 0.95

Calls 3

toBigDecimalMethod · 0.95
equalsMethod · 0.65
toBigIntegerMethod · 0.45

Tested by

no test coverage detected