- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 82 for BigInteger (0.29 sec)
-
src/main/java/org/codelibs/fess/util/MemoryUtil.java
public static String byteCountToDisplaySize(final long size) { return byteCountToDisplaySize(BigInteger.valueOf(size)); } private static String byteCountToDisplaySize(final BigInteger size) { Objects.requireNonNull(size, "size"); final String displaySize; if (size.divide(ONE_EB_BI).compareTo(BigInteger.ZERO) > 0) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.6K bytes - Viewed (0) -
maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
private final BigInteger value; BigIntegerItem(String str) { this.value = new BigInteger(str); } @Override public int getType() { return BIGINTEGER_ITEM; } @Override public boolean isNull() { return BigInteger.ZERO.equals(value); } @Override
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 26K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
.add(doubleConversionTest + i); BigInteger bigI = BigInteger.valueOf(i); testBigIntegersBuilder .add(bigI) .add(BigInteger.valueOf(Long.MAX_VALUE).add(bigI)) .add(BigInteger.valueOf(Long.MIN_VALUE).add(bigI)) .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI)) .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI)) .add(BigInteger.ONE.shiftLeft(63).add(bigI))
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
checkBigIntegerConversion("0.0.0.0", BigInteger.ZERO); checkBigIntegerConversion("0.0.0.1", BigInteger.ONE); checkBigIntegerConversion("127.255.255.255", BigInteger.valueOf(Integer.MAX_VALUE)); checkBigIntegerConversion( "255.255.255.254", BigInteger.valueOf(Integer.MAX_VALUE).multiply(BigInteger.valueOf(2))); checkBigIntegerConversion( "255.255.255.255", BigInteger.ONE.shiftLeft(32).subtract(BigInteger.ONE));
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
implements TestSetGenerator<BigInteger> { @Override public SampleElements<BigInteger> samples() { return new SampleElements<>( BigInteger.valueOf(1), BigInteger.valueOf(4), BigInteger.valueOf(3), BigInteger.valueOf(2), BigInteger.valueOf(5)); } @Override public BigInteger[] createArray(int length) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 21.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
import com.google.caliper.Param; import java.math.BigInteger; import java.math.RoundingMode; /** * Benchmarks for the rounding methods of {@code BigIntegerMath}. * * @author Louis Wasserman */ public class BigIntegerMathRoundingBenchmark { private static final BigInteger[] nonzero1 = new BigInteger[ARRAY_SIZE]; private static final BigInteger[] nonzero2 = new BigInteger[ARRAY_SIZE];
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jun 30 13:06:20 GMT 2020 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} private static boolean fitsInLong(BigInteger big) { return big.bitLength() <= 63; } private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE); private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE); private static long saturatedCast(BigInteger big) { if (big.compareTo(MAX_LONG) > 0) { return Long.MAX_VALUE; }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/DiscreteDomainTest.java
} public void testBigIntegersOffset() { assertEquals(BigInteger.ONE, DiscreteDomain.bigIntegers().offset(BigInteger.ZERO, 1)); assertEquals( BigInteger.valueOf(Long.MAX_VALUE), DiscreteDomain.bigIntegers().offset(BigInteger.ZERO, Long.MAX_VALUE)); } public void testBigIntegersOffsetExceptions() { assertThrows(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
implements TestSetGenerator<BigInteger> { @Override public SampleElements<BigInteger> samples() { return new SampleElements<>( BigInteger.valueOf(1), BigInteger.valueOf(4), BigInteger.valueOf(3), BigInteger.valueOf(2), BigInteger.valueOf(5)); } @Override public BigInteger[] createArray(int length) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 21.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
private static BigInteger oldSlowFactorial(int n) { if (n <= 20) { return BigInteger.valueOf(LongMath.factorial(n)); } else { int k = 20; return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n)); } } /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */ private static BigInteger oldSlowFactorial(int n1, int n2) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.3K bytes - Viewed (0)