MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / isIntegralZero

Method isIntegralZero

src/main/java/com/amazon/ion/Timestamp.java:869–874  ·  view source on GitHub ↗
(final BigDecimal decimal)

Source from the content-addressed store, hash-verified

867 }
868
869 private boolean isIntegralZero(final BigDecimal decimal) {
870 // zero || no low-order bits || < 1.0
871 return decimal.signum() == 0
872 || decimal.scale() < -63
873 || (decimal.precision() - decimal.scale() <= 0);
874 }
875
876 private static void throwTimestampOutOfRangeError(Number millis) {
877 throw new IllegalArgumentException("millis: " + millis + " is outside of valid the range: from "

Callers 3

TimestampMethod · 0.95
fastRoundZeroFloorMethod · 0.95
getMillisMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected