Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 70 for longValue (0.09 sec)

  1. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

            boolean isInBounds =
                expected.compareTo(MAX_LONG_AS_BIG_DECIMAL) <= 0
                    & expected.compareTo(MIN_LONG_AS_BIG_DECIMAL) >= 0;
    
            try {
              assertEquals(expected.longValue(), DoubleMath.roundToLong(d, mode));
              assertTrue(isInBounds);
            } catch (ArithmeticException e) {
              assertFalse(isInBounds);
            }
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      }
    
      public void testParse_maximumSize() {
        CacheBuilderSpec spec = parse("maximumSize=9000");
        assertNull(spec.initialCapacity);
        assertEquals(9000, spec.maximumSize.longValue());
        assertNull(spec.concurrencyLevel);
        assertNull(spec.keyStrength);
        assertNull(spec.valueStrength);
        assertNull(spec.writeExpirationTimeUnit);
        assertNull(spec.accessExpirationTimeUnit);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

          for (double i = 0; i < 100; i += 20) {
            v =
                v.add(
                    v.multiply(
                        BigInteger.valueOf(((Double) Math.abs(Math.sin(i) * 10.0)).longValue())));
          }
          return v;
        }
      }
    
      public enum ComparatorType {
        CHEAP {
          @Override
          public Comparator<Integer> get() {
            return Ordering.natural();
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacDataInputStream.java

                completeBigInt = completeBigInt.add(BigInteger.valueOf(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601));
                date = new Date(completeBigInt.longValue());
            }
    
            return date;
        }
    
    
        public PacUnicodeString readUnicodeString () throws IOException, PACDecodingException {
            short length = readShort();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 21 21:19:58 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

          String read(ByteSource byteSource, Charset cs) throws IOException {
            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
              // it is kind of lame that we need to construct a decoder to access this value.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLong.java

        checkNotNull(value);
        checkArgument(
            value.signum() >= 0 && value.bitLength() <= Long.SIZE,
            "value (%s) is outside the range for an unsigned long value",
            value);
        return fromLongBits(value.longValue());
      }
    
      /**
       * Returns an {@code UnsignedLong} holding the value of the specified {@code String}, parsed as an
       * unsigned {@code long} value.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/UnsignedLong.java

        checkNotNull(value);
        checkArgument(
            value.signum() >= 0 && value.bitLength() <= Long.SIZE,
            "value (%s) is outside the range for an unsigned long value",
            value);
        return fromLongBits(value.longValue());
      }
    
      /**
       * Returns an {@code UnsignedLong} holding the value of the specified {@code String}, parsed as an
       * unsigned {@code long} value.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/BloomFilterStrategies.java

         * AtomicLongArray} with the given value.
         */
        void putData(int i, long longValue) {
          long ourLongOld;
          long ourLongNew;
          boolean changedAnyBits = true;
          do {
            ourLongOld = data.get(i);
            ourLongNew = ourLongOld | longValue;
            if (ourLongOld == ourLongNew) {
              changedAnyBits = false;
              break;
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/BigIntegerMath.java

       */
      @GwtIncompatible // TODO
      @SuppressWarnings("fallthrough")
      public static int log10(BigInteger x, RoundingMode mode) {
        checkPositive("x", x);
        if (fitsInLong(x)) {
          return LongMath.log10(x.longValue(), mode);
        }
    
        int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10);
        BigInteger approxPow = BigInteger.TEN.pow(approxLog10);
        int approxCmp = approxPow.compareTo(x);
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractBehavior.java

            }
            final Long seqNo = esEntity.asDocMeta().seqNo();
            if (seqNo != null && seqNo.longValue() != SequenceNumbers.UNASSIGNED_SEQ_NO) {
                esEntity.asDocMeta().seqNo(seqNo);
            }
            final Long primaryTerm = esEntity.asDocMeta().primaryTerm();
            if (primaryTerm != null && primaryTerm.longValue() != SequenceNumbers.UNASSIGNED_PRIMARY_TERM) {
                esEntity.asDocMeta().primaryTerm(primaryTerm);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top