Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 680 for valueOf (0.16 sec)

  1. guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testCapacityForLargeSizes() {
        int[] largeExpectedSizes =
            new int[] {
              Integer.MAX_VALUE / 2 - 1,
              Integer.MAX_VALUE / 2,
              Integer.MAX_VALUE / 2 + 1,
              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testCapacityForLargeSizes() {
        int[] largeExpectedSizes =
            new int[] {
              Integer.MAX_VALUE / 2 - 1,
              Integer.MAX_VALUE / 2,
              Integer.MAX_VALUE / 2 + 1,
              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      private static final class RepeatedStringValueOfFunction
          implements Function<Integer, List<String>> {
        @Override
        public List<String> apply(Integer from) {
          String value = String.valueOf(from);
          return ImmutableList.of(value, value);
        }
      }
    
      public void testTransformAndConcat() {
        List<Integer> input = asList(1, 2, 3);
        Iterable<String> result =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
        assertEquals(Integer.valueOf(3), map.get(443));
        assertEquals(Integer.valueOf(4), map.get(1));
        assertEquals(Integer.valueOf(5), cache.get(6));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
  5. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

         * followed by the characters " x " (space, x and space) followed by the count. Elements and
         * counts are converted to strings as by {@code String.valueOf}.
         */
        @Override
        public String toString() {
          String text = String.valueOf(getElement());
          int n = getCount();
          return (n == 1) ? text : (text + " x " + n);
        }
      }
    
      /** An implementation of {@link Multiset#equals}. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/InetAddressesTest.java

        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)
  8. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        new RoundToDoubleTester(BigDecimal.valueOf((-1L << 54) - 4))
            .setExpectation(-Math.pow(2, 54) - 4, values())
            .test();
      }
    
      public void testRoundToDouble_minDouble() {
        BigDecimal minDoubleAsBD = new BigDecimal(-Double.MAX_VALUE);
        new RoundToDoubleTester(minDoubleAsBD).setExpectation(-Double.MAX_VALUE, values()).test();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

      private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
    
      public void testHashCode() {
        for (double value : VALUES) {
          assertThat(Doubles.hashCode(value)).isEqualTo(((Double) value).hashCode());
        }
      }
    
      public void testIsFinite() {
        for (double value : NUMBERS) {
          assertThat(Doubles.isFinite(value))
              .isEqualTo(!(Double.isNaN(value) || Double.isInfinite(value)));
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
    
      public void testHashCode() {
        for (double value : VALUES) {
          assertThat(Doubles.hashCode(value)).isEqualTo(((Double) value).hashCode());
        }
      }
    
      public void testIsFinite() {
        for (double value : NUMBERS) {
          assertThat(Doubles.isFinite(value))
              .isEqualTo(!(Double.isNaN(value) || Double.isInfinite(value)));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
Back to top