Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 804 for value (0.12 sec)

  1. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        }
    
        // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger
        assertEquals(3327428144502L, BloomFilter.optimalNumOfBits(Integer.MAX_VALUE, Double.MIN_VALUE));
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> {
                  BloomFilter<String> unused =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

          ensureRoomFor(values.size());
          for (Integer value : values) {
            array[count++] = value;
          }
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableIntArray} will contain.
         */
        @CanIgnoreReturnValue
        public Builder addAll(ImmutableIntArray values) {
          ensureRoomFor(values.length());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                    }
                  }
    
                  @Override
                  public @Nullable String put(String key, String value) {
                    checkNotNull(value);
                    return map.put(key, value);
                  }
                };
              }
            },
            "HashMap w/out null values",
            ALLOWS_NULL_KEYS);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

        @ParametricNullness final V value;
    
        Present(@ParametricNullness V value) {
          this.value = value;
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

          assertThat(Shorts.checkedCast((long) value)).isEqualTo(value);
        }
        assertCastFails(GREATEST + 1L);
        assertCastFails(LEAST - 1L);
        assertCastFails(Long.MAX_VALUE);
        assertCastFails(Long.MIN_VALUE);
      }
    
      public void testSaturatedCast() {
        for (short value : VALUES) {
          assertThat(Shorts.saturatedCast((long) value)).isEqualTo(value);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/EquivalenceTest.java

        SerializableTester.reserializeAndAssert(Equivalence.identity());
      }
    
      private static class IntValue {
        private final int value;
    
        IntValue(int value) {
          this.value = value;
        }
    
        @Override
        public String toString() {
          return "value = " + value;
        }
      }
    
      public void testOnResultOf() {
        EquivalenceTester.of(Equivalence.equals().onResultOf(Functions.toStringFunction()))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RangeTest.java

          new DiscreteDomain<Integer>() {
            @Override
            public Integer next(Integer value) {
              return integers().next(value);
            }
    
            @Override
            public Integer previous(Integer value) {
              return integers().previous(value);
            }
    
            @Override
            public long distance(Integer start, Integer end) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

          ensureRoomFor(values.size());
          for (Double value : values) {
            array[count++] = value;
          }
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableDoubleArray} will contain.
         */
        @CanIgnoreReturnValue
        public Builder addAll(ImmutableDoubleArray values) {
          ensureRoomFor(values.length());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

              equal(getMap().get(entry.getKey()), entry.getValue()));
        }
      }
    
      private static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // This one-liner saves us from some ugly casts
      protected Entry<K, V> entry(K key, V value) {
        return Helpers.mapEntry(key, value);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testReturning() throws Exception {
        assertNull(Callables.returning(null).call());
    
        Object value = new Object();
        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
        // Expect the same value on subsequent calls
        assertSame(value, callable.call());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top