MCPcopy Create free account
hub / github.com/antlr/codebuff / fitsInLong

Method fitsInLong

output/java_guava/1.4.19/BigIntegerMath.java:467–470  ·  view source on GitHub ↗
(BigInteger x)

Source from the content-addressed store, hash-verified

465 // Returns true if BigInteger.valueOf(x.longValue()).equals(x).
466
467 @GwtIncompatible // TODO
468 static boolean fitsInLong(BigInteger x) {
469 return x.bitLength() <= Long.SIZE - 1;
470 }
471
472 private BigIntegerMath() {}
473}

Callers 2

log10Method · 0.95
sqrtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected