- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for Heller (0.2 sec)
-
guava-tests/test/com/google/common/base/ToStringHelperTest.java
MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(new TestClass()) .add("field1", 1) .addValue("value1") .add("field2", "value2"); final String expected = "TestClass{field1=1, value1, field2=value2}"; assertEquals(expected, helper.toString()); // Call toString again assertEquals(expected, helper.toString());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:24:55 GMT 2024 - 15.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
if (isSatisfied(guard)) { guard.condition.signal(); break; } } } /** * Exactly like signalNextWaiter, but caller guarantees that guardToSkip need not be considered, * because caller has previously checked that guardToSkip.isSatisfied() returned false. An * optimization for the case that guardToSkip.isSatisfied() may be expensive. *
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) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
expected[119] = 1048576; expected[120] = 458752; expected[121] = 524288; expected[122] = 65536; // Anything not assigned was the default 0. return expected; } /** * Helper to run the loop to test all the permutations for the number of bytes specified. * * @param numBytes the number of bytes in the byte array * @param expectedCount the expected number of roundtrippable permutations
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
.isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class); } public void testSetWeakValues() { MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues()); checkStrength(map, Strength.STRONG, Strength.WEAK); assertThat(map.entryHelper) .isInstanceOf(MapMakerInternalMap.StrongKeyWeakValueEntry.Helper.class); } private static void checkStrength(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 35.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
.isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class); } public void testSetWeakValues() { MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues()); checkStrength(map, Strength.STRONG, Strength.WEAK); assertThat(map.entryHelper) .isInstanceOf(MapMakerInternalMap.StrongKeyWeakValueEntry.Helper.class); } private static void checkStrength(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 35.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.checkerframework.checker.nullness.qual.Nullable; /** * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a * test with reference to the same "lock-like object", and then their interactions with that object
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ComparisonChain.java
* * <p><b>Note:</b> {@code ComparisonChain} instances are <b>immutable</b>. For this utility to work * correctly, calls must be chained as illustrated above. * * <p>Performance note: Even though the {@code ComparisonChain} caller always invokes its {@code * compare} methods unconditionally, the {@code ComparisonChain} implementation stops calling its * inputs' {@link Comparable#compareTo compareTo} and {@link Comparator#compare compare} methods as
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Sep 21 17:28:11 GMT 2022 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
return policy == Policies.DISABLED ? new ReentrantLock(fair) // requireNonNull is safe because createNodes inserts an entry for every E. // (If the caller passes `null` for the `rank` parameter, this will throw, but that's OK.) : new CycleDetectingReentrantLock(requireNonNull(lockGraphNodes.get(rank)), fair); }
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/src/com/google/common/util/concurrent/RateLimiter.java
private boolean canAcquire(long nowMicros, long timeoutMicros) { return queryEarliestAvailable(nowMicros) - timeoutMicros <= nowMicros; } /** * Reserves next ticket and returns the wait time that the caller must wait for. * * @return the required wait time, never negative */ final long reserveAndGetWaitLength(int permits, long nowMicros) { long momentAvailable = reserveEarliestAvailable(permits, nowMicros);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 04 09:45:04 GMT 2023 - 18.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
Serialization.getFieldSetter(ImmutableSetMultimap.class, "emptySet"); } @GwtIncompatible // java.io.ObjectInputStream @J2ktIncompatible // Serialization type safety is at the caller's mercy. @SuppressWarnings("unchecked") private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 23.6K bytes - Viewed (0)