- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 410 for defaults (0.16 sec)
-
guava-tests/test/com/google/common/base/OptionalTest.java
} @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional public void testOr_T_present() { assertEquals("a", Optional.of("a").or("default")); } public void testOr_T_absent() { assertEquals("default", Optional.absent().or("default")); } @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional public void testOr_supplier_present() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
// Test loading system properties result = Maps.fromProperties(System.getProperties()); assertTrue(result.containsKey("java.version")); // Test that defaults work, too. testProp = new Properties(System.getProperties()); String override = "test\njava.version : hidden"; testProp.load(new StringReader(override));
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) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
// Test loading system properties result = Maps.fromProperties(System.getProperties()); assertTrue(result.containsKey("java.version")); // Test that defaults work, too. testProp = new Properties(System.getProperties()); String override = "test\njava.version : hidden"; testProp.load(new StringReader(override));
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) -
guava/src/com/google/common/collect/ForwardingMultiset.java
* implementation, or delegating to the provided {@code standardAdd} method. * * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code * default} methods. Instead, it inherits their default implementations. When those implementations * invoke methods, they invoke methods on the {@code ForwardingMultiset}. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri May 12 15:26:39 GMT 2023 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
} else { return 0; } default: throw new AssertionError(); } } for (long accum = 1; ; k >>= 1) { switch (k) { case 0: return accum; case 1: return accum * b; default: accum *= ((k & 1) == 0) ? 1 : b; b *= b; } } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 44.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
builder.weakKeys(); break; default: throw new AssertionError(); } } if (valueStrength != null) { switch (valueStrength) { case SOFT: builder.softValues(); break; case WEAK: builder.weakValues(); break; default: throw new AssertionError(); } }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Aug 22 14:27:44 GMT 2022 - 18.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java
import javax.annotation.CheckForNull; /** * A descending wrapper around an {@code ImmutableSortedMultiset} * * @author Louis Wasserman */ @SuppressWarnings("serial") // uses writeReplace, not default serialization @GwtIncompatible @ElementTypesAreNonnullByDefault final class DescendingImmutableSortedMultiset<E> extends ImmutableSortedMultiset<E> { private final transient ImmutableSortedMultiset<E> forward;
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java
import javax.annotation.CheckForNull; /** * A descending wrapper around an {@code ImmutableSortedMultiset} * * @author Louis Wasserman */ @SuppressWarnings("serial") // uses writeReplace, not default serialization @GwtIncompatible @ElementTypesAreNonnullByDefault final class DescendingImmutableSortedMultiset<E> extends ImmutableSortedMultiset<E> { private final transient ImmutableSortedMultiset<E> forward;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SingletonImmutableSet.java
* * @author Kevin Bourrillion * @author Nick Kralevich */ @GwtCompatible(serializable = true, emulated = true) @SuppressWarnings("serial") // uses writeReplace(), not default serialization @ElementTypesAreNonnullByDefault final class SingletonImmutableSet<E> extends ImmutableSet<E> { // We deliberately avoid caching the asList and hashCode here, to ensure that with
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/TimeLimiter.java
* DEFAULT_VALUE} if this method call takes over 50 ms, you can use this code: * * <pre> * TimeLimiter limiter = . . .; * TargetType proxy = limiter.newProxy( * target, TargetType.class, 50, TimeUnit.MILLISECONDS); * try { * return proxy.someMethod(); * } catch (UncheckedTimeoutException e) { * return DEFAULT_VALUE; * } * </pre> *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 18:32:03 GMT 2023 - 8.3K bytes - Viewed (0)