- Sort Score
- Num 10 results
- Language All
Results 541 - 550 of 1,070 for prevent (0.04 seconds)
-
android/guava/src/com/google/common/util/concurrent/RateLimiter.java
* arbitrary past or present time */ abstract long queryEarliestAvailable(long nowMicros); /** * Reserves the requested number of permits and returns the time that those permits can be used * (with one caveat). * * @return the time that the permits may be used, or, if the permits may be used immediately, an * arbitrary past or present time */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:05:27 GMT 2025 - 21.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/Jdk9PlatformTest.kt
assertThat(buildIfSupported()).isNotNull() } @Test fun buildsWhenJdk8() { platform.assumeJdk8() try { SSLSocket::class.java.getMethod("getApplicationProtocol") // also present on JDK8 after build 252. assertThat(buildIfSupported()).isNotNull() } catch (nsme: NoSuchMethodException) { assertThat(buildIfSupported()).isNull() } } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java
wrappedSet.add(2); wrappedSet.add(3); copyOfWrappedSet = ImmutableSet.copyOf(wrappedSet); setToTest = InvalidatableSet.of(wrappedSet, () -> wrappedSet.contains(1), () -> 1 + "is not present"); } @Test @SuppressWarnings("TruthSelfEquals") public void testEquals() { // sanity check on construction of copyOfWrappedSet assertThat(wrappedSet).isEqualTo(copyOfWrappedSet);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.2K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java
import com.google.caliper.Benchmark; import java.util.ArrayList; import java.util.List; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** * Benchmark for HashMultiset.add for an already-present element. * * @author Louis Wasserman */ @NullUnmarked public class HashMultisetAddPresentBenchmark { private static final int ARRAY_MASK = 0x0ffff; private static final int ARRAY_SIZE = 0x10000;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.7K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
public static int compare(byte a, byte b) { return toUnsignedInt(a) - toUnsignedInt(b); } /** * Returns the least value present in {@code array}, treating values as unsigned. * * @param array a <i>nonempty</i> array of {@code byte} values * @return the value present in {@code array} that is less than or equal to every other value in * the array according to {@link #compare}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 21K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/EventSpyImpl.java
if (!listeners.isEmpty()) { Event event = new DefaultEvent(session, ee, eventType); for (Listener listener : listeners) { listener.onEvent(event); } } } } /** * Simple "conversion" from Maven3 event type enum to Maven4 enum. */ protected EventType convert(ExecutionEvent.Type type) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 29 20:53:26 GMT 2024 - 2.2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt
import org.gradle.api.tasks.CacheableTask import org.gradle.api.tasks.TaskAction import java.io.File /** * This [Task][org.gradle.api.Task] checks that the contents of a given accepted API changes files * are present in alphabetical order (by type, then member), and throws an exception and reports * any changes that are not. */ @CacheableTask abstract class AlphabeticalAcceptedApiChangesTask : AbstractAcceptedApiChangesMaintenanceTask() {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Nov 29 14:03:44 GMT 2024 - 2.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java
public class ListAddTester<E> extends AbstractListTester<E> { @CollectionFeature.Require(SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) public void testAdd_supportedPresent() { assertTrue("add(present) should return true", getList().add(e0())); expectAdded(e0()); } @CollectionFeature.Require(absent = SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) /*
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SortedListsTest.java
} break; case LAST_BEFORE: if (list.contains(key)) { assertEquals(list.indexOf(key) - 1, answer); return; } break; } // key is not present int nextHigherIndex = list.size(); for (int i = list.size() - 1; i >= 0 && list.get(i) > key; i--) { nextHigherIndex = i; } switch (absentBehavior) { case NEXT_LOWER:Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerRelay.kt
*/ package okhttp3 /** * A special [EventListener] for testing the mechanics of event listeners. * * Each instance processes a single event on [call], and then adds a successor [EventListenerRelay] * on the same [call] to process the next event. * * By forcing the list of listeners to change after every event, we can detect if buggy code caches * a stale [EventListener] in a field or local variable. */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 1.5K bytes - Click Count (0)