- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for existing (0.24 sec)
-
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
Class<E> clazz) { Map<E, LockGraphNode> existing = (Map<E, LockGraphNode>) lockGraphNodesPerType.get(clazz); if (existing != null) { return existing; } Map<E, LockGraphNode> created = createNodes(clazz); existing = (Map<E, LockGraphNode>) lockGraphNodesPerType.putIfAbsent(clazz, created); return MoreObjects.firstNonNull(existing, created); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 35.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
EnumHashBiMap<Currency, Country> bimap2 = EnumHashBiMap.create(emptyBimap2); assertTrue(bimap2.isEmpty()); } public void testEnumHashBiMapConstructor() { /* Test that it copies existing entries. */ EnumHashBiMap<Currency, String> bimap1 = EnumHashBiMap.create(Currency.class); bimap1.put(Currency.DOLLAR, "dollar"); EnumHashBiMap<Currency, String> bimap2 = EnumHashBiMap.create(bimap1);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Converter.java
* requirement that existing callers already fulfill). * * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that * that is how the signature looked even prior to this comment! So naturally any change can break * existing users, but it can't *fix* existing users because any users who needed
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 23K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
* expectContents(E...)} and its friends. */ protected abstract Collection<E> actualContents(); /** * Replaces the existing container under test with a new container created by the subject * generator. * * @see #resetContainer(Object) resetContainer(C) * @return the new container instance. */ @CanIgnoreReturnValue
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeMap.java
* * <p>If {@code range} {@linkplain Range#isEmpty() is empty}, then this is a no-op. */ void put(Range<K> range, V value); /** * Maps a range to a specified value, coalescing this range with any existing ranges with the same * value that are {@linkplain Range#isConnected connected} to this range. * * <p>The behavior of {@link #get(Comparable) get(k)} after calling this method is identical to
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 6.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java
} @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutIfAbsent_supportedPresent() { assertEquals( "putIfAbsent(present, value) should return existing value", v0(), getMap().putIfAbsent(k0(), v3())); expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT) public void testPutIfAbsent_unsupportedAbsent() { try {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Supplier.java
* Otherwise, at least reduce <i>explicit</i> dependencies on this type by using lambda expressions * or method references instead of classes, leaving your code easier to migrate in the future. * * <p>To use an existing supplier instance (say, named {@code supplier}) in a context where the * <i>other type</i> of supplier is expected, use the method reference {@code supplier::get}. A
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 01:41:50 GMT 2024 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionList.java
// contract to guarantee ordering among runnables we'd have to modify the logic here to allow // it. executeListener(runnable, executor); } /** * Runs this execution list, executing all existing pairs in the order they were added. However, * note that listeners added after this point may be executed before those previously added, and
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ArrayListMultimap.java
* given key agrees with the order in which the values were added. * * <p>This multimap allows duplicate key-value pairs. After adding a new key-value pair equal to an * existing key-value pair, the {@code ArrayListMultimap} will contain entries for both the new * value and the old value. * * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 6.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
import com.google.common.reflect.TypeToken; import java.lang.reflect.Method; import junit.framework.TestCase; /** * Tests that all package-private {@code writeReplace} methods are overridden in any existing * subclasses. Without such overrides, optimizers might put a {@code writeReplace}-containing class * and its subclass in different packages, causing the serialization system to fail to invoke {@code
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 4.9K bytes - Viewed (0)