- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for it (0.15 sec)
-
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
public void run() { thirdSignal.countDown(); result.set(1, cache.getUnchecked(key)); doneSignal.countDown(); } }.start(); // give the second get a chance to run; it is okay for this to be racy // as the end result should be the same either way thirdSignal.await(); Thread.yield(); // Expand! CacheTesting.forceExpandSegment(cache, key);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 86.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
.that(bucketsOf(map1)) .isEqualTo(initialBuckets); // Ensure that referenceMap, which doesn't use WithExpectedSize, ends up with the same table // size as the other two maps. If it ended up with a smaller size that would imply that we // computed the wrong initial capacity. for (int i = 0; i < size; i++) { referenceMap.put(i, null); }
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
.that(bucketsOf(map1)) .isEqualTo(initialBuckets); // Ensure that referenceMap, which doesn't use WithExpectedSize, ends up with the same table // size as the other two maps. If it ended up with a smaller size that would imply that we // computed the wrong initial capacity. for (int i = 0; i < size; i++) { referenceMap.put(i, null); }
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) -
android/guava/src/com/google/common/collect/Synchronized.java
@Override public String toString() { synchronized (mutex) { return delegate.toString(); } } // Serialization invokes writeObject only when it's private. // The SynchronizedObject subclasses don't need a writeObject method since // they don't contain any non-transient member variables, while the // following writeObject() handles the SynchronizedObject members.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 53.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
// (hypothetical) unsafe read by our caller. Note: adding 'volatile' does not fix this issue, // it would just add an edge such that if done() observed non-null, then it would also // definitely observe all earlier writes, but we still have no guarantee that done() would see // the initial write (just stronger guarantees if it does). // // See: http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013800.html
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 59.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* API</h2> * * <p>The successor to Guava's caching API is <a * href="https://github.com/ben-manes/caffeine/wiki">Caffeine</a>. Its API is designed to make it a * nearly drop-in replacement. It requires Java 8+, and is not available for Android or GWT/J2CL, * and may have <a href="https://github.com/ben-manes/caffeine/wiki/Guava">different (usually
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 51.3K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
* <li>Capture a generic type with a (usually anonymous) subclass. For example: * <pre>{@code * new TypeToken<List<String>>() {} * }</pre> * <p>Note that it's critical that the actual type argument is carried by a subclass. The * following code is wrong because it only captures the {@code <T>} type variable of the * {@code listType()} method signature; while {@code <String>} is lost in erasure: * <pre>{@code * class Util {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 53.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterators.java
} /* * requireNonNull is safe because our callers always pass non-null arguments. Each element * of the array becomes null only when we iterate past it and then clear it. */ I result = requireNonNull(elements[index]); elements[index] = null; index++; return result; } }; } /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 50.5K bytes - Viewed (0) -
guava/src/com/google/common/base/CharMatcher.java
* * <p>This implementation tries to be smart in a number of ways. It recognizes cases where the * negation is cheaper to precompute than the matcher itself; it tries to build small hash tables * for matchers that only match a few characters, and so on. In the worst-case scenario, it * constructs an eight-kilobyte bit array and queries that. In many situations this produces a
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 53.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimaps.java
} /** * Returns a synchronized (thread-safe) multimap backed by the specified multimap. In order to * guarantee serial access, it is critical that <b>all</b> access to the backing multimap is * accomplished through the returned multimap. * * <p>It is imperative that the user manually synchronize on the returned multimap when accessing * any of its collection views: * * <pre>{@code
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 86.4K bytes - Viewed (0)