- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 777 for that (0.12 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java
} /** * This first test doesn't test anything in Uninterruptibles, just demonstrates some normal * behavior of futures so that you can contrast the next test with it. */ public void testRegularFutureInterrupted() throws ExecutionException { /* * Here's the order of events that we want. * * 1. The client thread begins to block on a get() call to a future.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
assertWithMessage(UnsignedInts.toString(value)) .that(UnsignedInteger.fromIntBits(value).intValue()) .isEqualTo(value); } } public void testFromIntBitsLongValue() { for (int value : TEST_INTS) { long expected = value & 0xffffffffL; assertWithMessage(UnsignedInts.toString(value)) .that(UnsignedInteger.fromIntBits(value).longValue()) .isEqualTo(expected);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 9.6K bytes - Viewed (0) -
guava/src/com/google/common/io/LittleEndianDataInputStream.java
import java.io.DataInputStream; import java.io.EOFException; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; /** * An implementation of {@link DataInput} that uses little-endian byte ordering for reading {@code * short}, {@code int}, {@code float}, {@code double}, and {@code long} values. * * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
protected void setUp() throws Exception { // Load the "normal" copy of SettableFuture and related classes. SettableFuture<?> unused = SettableFuture.create(); // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation // cause system property. This allows us to run with both settings of the property in one jvm // without resorting to even crazier hacks to reset static final boolean fields.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapIteratorCache.java
import java.util.AbstractSet; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import javax.annotation.CheckForNull; /** * A map-like data structure that wraps a backing map and caches values while iterating through * {@link #unmodifiableKeySet()}. By design, the cache is cleared when this structure is mutated. If
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Primitives.java
/** A map from wrapper types to their corresponding primitive types. */ private static final Map<Class<?>, Class<?>> WRAPPER_TO_PRIMITIVE_TYPE; // Sad that we can't use a BiMap. :( static { Map<Class<?>, Class<?>> primToWrap = new LinkedHashMap<>(16); Map<Class<?>, Class<?>> wrapToPrim = new LinkedHashMap<>(16);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Oct 05 19:04:25 UTC 2022 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
protected void setUp() throws Exception { // Load the "normal" copy of SettableFuture and related classes. SettableFuture<?> unused = SettableFuture.create(); // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation // cause system property. This allows us to run with both settings of the property in one jvm // without resorting to even crazier hacks to reset static final boolean fields.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMap.java
// If duplicates are allowed, this map will track the last value for each duplicated key. // A second pass will retain only the first entry for that key, but with this last value. The // value will then be replaced by null, signaling that later entries with the same key should // be deleted. Map<K, @Nullable V> duplicates = null; int dupCount = 0; for (int i = 0; i < n; i++) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestSubjectGenerator.java
*/ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import org.checkerframework.checker.nullness.qual.Nullable; /** * To be implemented by test generators that can produce test subjects without requiring any * parameters. * * @param <T> the type created by this generator. * @author George van den Driessche */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 1.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashMap.java
CompactLinkedHashMap<K, V> create() { return new CompactLinkedHashMap<>(); } /** * Creates a {@code CompactLinkedHashMap} instance, with a high enough "initial capacity" that it * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures. * * @param expectedSize the number of elements you expect to add to the returned set
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 8.5K bytes - Viewed (0)