Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for bigIntegers (0.22 sec)

  1. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  2. 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)
  3. src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java

     */
    package org.codelibs.core.convert;
    
    import java.math.BigInteger;
    
    /**
     * {@link BigInteger}用の変換ユーティリティです。
     *
     * @author higa
     */
    public abstract class BigIntegerConversionUtil {
    
        /**
         * {@link BigInteger}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @return 変換された{@link BigInteger}
         */
        public static BigInteger toBigInteger(final Object o) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacDataInputStream.java

                BigInteger lastBigInt = BigInteger.valueOf(last);
                BigInteger firstBigInt = BigInteger.valueOf(first);
                BigInteger completeBigInt = lastBigInt.add(firstBigInt.shiftLeft(32));
                completeBigInt = completeBigInt.divide(BigInteger.valueOf(10000L));
                completeBigInt = completeBigInt.add(BigInteger.valueOf(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 21 21:19:58 GMT 2018
    - 5.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/MathPreconditions.java

        if (x <= 0) {
          throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
        }
        return x;
      }
    
      @CanIgnoreReturnValue
      static BigInteger checkPositive(String role, BigInteger x) {
        if (x.signum() <= 0) {
          throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
        }
        return x;
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

      }
    
      /**
       * Does a CPU intensive operation on Integer and returns a BigInteger Used to implement an
       * ordering that spends a lot of cpu.
       */
      static class ExpensiveComputation implements Function<Integer, BigInteger> {
        @Override
        public BigInteger apply(Integer from) {
          BigInteger v = BigInteger.valueOf(from);
          // Math.sin is very slow for values outside 4*pi
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

        MathPreconditions.checkNonNegative("BigInteger", BigInteger.ZERO);
      }
    
      public void testCheckNonNegative_positiveBigInteger() {
        MathPreconditions.checkNonNegative("BigInteger", BigInteger.ONE);
      }
    
      public void testCheckNonNegative_negativeBigInteger() {
        try {
          MathPreconditions.checkNonNegative("int", BigInteger.ONE.negate());
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

       * range uniformly at random. Zero is treated as having log2 == 0.
       */
      static BigInteger randomNonNegativeBigInteger(int numBits) {
        int digits = RANDOM_SOURCE.nextInt(numBits);
        if (digits == 0) {
          return new BigInteger(1, RANDOM_SOURCE);
        } else {
          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top