- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 844 for Because (0.2 sec)
-
android/guava/src/com/google/common/collect/TopKSelector.java
} else if (bufferSize < k) { buffer[bufferSize++] = elem; // uncheckedCastNullableTToT is safe because bufferSize > 0. if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) { threshold = elem; } // uncheckedCastNullableTToT is safe because bufferSize > 0. } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ListenerCallQueue.java
* </ul> * * The last point is subtle. Often the observable object will be managing its own internal state * using a lock, however it is dangerous to dispatch listeners while holding a lock because they * might run on the {@code directExecutor()} or be otherwise re-entrant (call back into your * object). So it is important to not call {@link #dispatch} while holding any locks. This is whyRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
@WeakOuter private final class ServiceDelegate extends AbstractService { // A handle to the running task so that we can stop it when a shutdown has been requested. // These two fields are volatile because their values will be accessed from multiple threads. private volatile @Nullable Cancellable runningTask; private volatile @Nullable ScheduledExecutorService executorService;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.java
* * @author Louis Wasserman */ @GwtCompatible @NullMarked public class RegularImmutableAsListTest extends TestCase { /** * RegularImmutableAsList should assume its input is null-free without checking, because it only * gets invoked from other immutable collections. */ public void testDoesntCheckForNull() { ImmutableSet<Integer> set = ImmutableSet.of(1, 2, 3); ImmutableList<Integer> unused =Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ContiguousSet.java
/** * A sorted set of contiguous values in a given {@link DiscreteDomain}. Example: * * {@snippet : * ContiguousSet.create(Range.closed(5, 42), DiscreteDomain.integers()) * } * * <p>Note that because bounded ranges over {@code int} and {@code long} values are so common, this * particular example can be written as just: * * {@snippet : * ContiguousSet.closed(5, 42) * } *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
*/ protected final void notifyFailed(Throwable cause) { checkNotNull(cause); monitor.enter(); try { State previous = state(); switch (previous) { case NEW: case TERMINATED: throw new IllegalStateException("Failed while in state:" + previous, cause); case RUNNING: case STARTING: case STOPPING:
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java
static char[] charBufferFromThreadLocal() { // ThreadLocal is not available to GWT, so we always reuse the same // instance. It is always safe to return the same instance because // javascript is single-threaded, and only used by blocks that doesn't // involve async callbacks. return CHAR_BUFFER; } private Platform() {}
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 1.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashing.java
/** Maximum size of a compact hash-based collection (2^30 - 1 because 0 is UNSET). */ static final int MAX_SIZE = Ints.MAX_POWER_OF_TWO - 1; /** Default size of a compact hash-based collection. */ static final int DEFAULT_SIZE = 3; /** * Minimum size of the hash table of a compact hash-based collection. Because small hash tables
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
logger.finer(Platform.format("%s: including by default: %s", test, e.getMessage())); return true; } if (suppressedTests.contains(method)) { logger.finer(Platform.format("%s: excluding because it was explicitly suppressed.", test)); return false; } TesterRequirements requirements; try { requirements = FeatureUtil.getTesterRequirements(method);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/GeneralRange.java
boolean isEmpty() { // The casts are safe because of the has*Bound() checks. return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint()))) || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint()))); } boolean tooLow(@ParametricNullness T t) { if (!hasLowerBound()) { return false; } // The cast is safe because of the hasLowerBound() check.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.8K bytes - Viewed (0)