- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 861 for Value (0.19 sec)
-
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) -
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) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
public V put(K key, @ParametricNullness V value) { return super.put(key, value); } @CanIgnoreReturnValue @Override @SuppressWarnings("RedundantOverride") // b/192446478: RedundantOverride ignores some annotations. // TODO(b/192446998): Remove this override after tools understand nullness better. @CheckForNull public V forcePut(K key, @ParametricNullness V value) { return super.forcePut(key, value); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Aug 24 01:40:03 GMT 2023 - 5.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
assertThat(LARGE_LONG_VALUES_STATS.mean()) .isWithin(ALLOWED_ERROR * Long.MAX_VALUE) .of(LARGE_LONG_VALUES_MEAN); } public void testSum() { assertThat(EMPTY_STATS_VARARGS.sum()).isEqualTo(0.0); assertThat(EMPTY_STATS_ITERABLE.sum()).isEqualTo(0.0); assertThat(ONE_VALUE_STATS.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); assertThat(TWO_VALUES_STATS.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 32.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
* public class SafeBox<V> { * private V value; * * public synchronized V get() throws InterruptedException { * while (value == null) { * wait(); * } * V result = value; * value = null; * notifyAll(); * return result; * } * * public synchronized void set(V newValue) throws InterruptedException { * while (value != null) { * wait(); * }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 18:22:01 GMT 2023 - 38.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableRangeMap.java
return (ImmutableRangeMap<K, V>) EMPTY; } /** Returns an immutable range map mapping a single range to a single value. */ public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of(Range<K> range, V value) { return new ImmutableRangeMap<>(ImmutableList.of(range), ImmutableList.of(value)); } @SuppressWarnings("unchecked") public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> copyOf(
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 14.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ConverterTest.java
} public void testApply() { assertEquals(LONG_VAL, STR_TO_LONG.apply(STR_VAL)); } private static class StringWrapper { private final String value; public StringWrapper(String value) { this.value = value; } } @GwtIncompatible // J2CL generics problem public void testAndThen() { Converter<StringWrapper, String> first =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 06 17:02:33 GMT 2023 - 7.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
/** * Returns a {@code MapJoiner} using the given key-value separator, and the same configuration as * this {@code Joiner} otherwise. * * @since 20.0 */ public MapJoiner withKeyValueSeparator(char keyValueSeparator) { return withKeyValueSeparator(String.valueOf(keyValueSeparator)); } /** * Returns a {@code MapJoiner} using the given key-value separator, and the same configuration as
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 18.6K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheLoader.java
public abstract class CacheLoader<K, V> { /** Constructor for use by subclasses. */ protected CacheLoader() {} /** * Computes or retrieves the value corresponding to {@code key}. * * @param key the non-null key whose value should be loaded * @return the value associated with {@code key}; <b>must not be null</b> * @throws Exception if unable to load the result
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 19 20:20:14 GMT 2022 - 9.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
final int value; IntegerDiv10(int value) { this.value = value; } @Override public int compareTo(IntegerDiv10 o) { return value / 10 - o.value / 10; } @Override public String toString() { return Integer.toString(value); } } public void testCopyOfDuplicateKey() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 28.1K bytes - Viewed (0)