Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 680 for valueOf (0.19 sec)

  1. android/guava-tests/test/com/google/common/base/OptionalTest.java

        new EqualsTester()
            .addEqualityGroup(Optional.absent(), reserialize(Optional.absent()))
            .addEqualityGroup(Optional.of(Long.valueOf(5)), reserialize(Optional.of(Long.valueOf(5))))
            .addEqualityGroup(Optional.of(Long.valueOf(42)), reserialize(Optional.of(Long.valueOf(42))))
            .testEquals();
      }
    
      public void testToString_absent() {
        assertEquals("Optional.absent()", Optional.absent().toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        @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) {
          return new BigInteger[length];
        }
    
        @Override
    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)
  3. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

      public void testBadStrings() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        String[] BAD_STRINGS = {
          String.valueOf(Character.MIN_LOW_SURROGATE),
          Character.MIN_LOW_SURROGATE + "xyz",
          "abc" + Character.MIN_LOW_SURROGATE,
          "abc" + Character.MIN_LOW_SURROGATE + "xyz",
          String.valueOf(Character.MAX_LOW_SURROGATE),
          Character.MAX_LOW_SURROGATE + "xyz",
          "abc" + Character.MAX_LOW_SURROGATE,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        for (float value : VALUES) {
          assertThat(Floats.hashCode(value)).isEqualTo(((Float) value).hashCode());
        }
      }
    
      public void testIsFinite() {
        for (float value : NUMBERS) {
          assertThat(Floats.isFinite(value))
              .isEqualTo(!(Float.isInfinite(value) || Float.isNaN(value)));
        }
      }
    
      public void testCompare() {
        for (float x : VALUES) {
          for (float y : VALUES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Enums.java

        private final Class<T> enumClass;
    
        StringConverter(Class<T> enumClass) {
          this.enumClass = checkNotNull(enumClass);
        }
    
        @Override
        protected T doForward(String value) {
          return Enum.valueOf(enumClass, value);
        }
    
        @Override
        protected String doBackward(T enumValue) {
          return enumValue.name();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 11:56:44 GMT 2023
    - 5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/MoreObjects.java

        }
    
        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper add(String name, float value) {
          return addUnconditionalHolder(name, String.valueOf(value));
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      /** Previous version of BigIntegerMath.factorial, kept for timing purposes. */
      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. */
    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)
  8. android/guava/src/com/google/common/math/BigIntegerMath.java

       * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
       * default rounding mode: if the two nearest representable values are equally near, the one with
       * the least significant bit zero is chosen. (In such cases, both of the nearest representable
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

                new long[] {},
                new long[] {MIN_VALUE},
                new long[] {MIN_VALUE, MIN_VALUE},
                new long[] {MIN_VALUE, (long) 1},
                new long[] {(long) 1},
                new long[] {(long) 1, MIN_VALUE},
                new long[] {MAX_VALUE, MAX_VALUE - (long) 1},
                new long[] {MAX_VALUE, MAX_VALUE},
                new long[] {MAX_VALUE, MAX_VALUE, MAX_VALUE});
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/LongsTest.java

                new long[] {},
                new long[] {MIN_VALUE},
                new long[] {MIN_VALUE, MIN_VALUE},
                new long[] {MIN_VALUE, (long) 1},
                new long[] {(long) 1},
                new long[] {(long) 1, MIN_VALUE},
                new long[] {MAX_VALUE, MAX_VALUE - (long) 1},
                new long[] {MAX_VALUE, MAX_VALUE},
                new long[] {MAX_VALUE, MAX_VALUE, MAX_VALUE});
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
Back to top