- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 358 for Supplied (0.17 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java
* * @param key the key for which to retrieve the session data, must not be {@code null} * @param supplier the supplier will compute the new value * @return the session data associated with the key */ @Nullable <T> T computeIfAbsent(@Nonnull Key<T> key, @Nonnull Supplier<T> supplier); /** * Create a key using the given class as an identifier and as the type of the object. */
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed Feb 28 23:31:09 UTC 2024 - 4.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Present.java
} @Override public Optional<T> or(Optional<? extends T> secondChoice) { checkNotNull(secondChoice); return this; } @Override public T or(Supplier<? extends T> supplier) { checkNotNull(supplier); return reference; } @Override public T orNull() { return reference; } @Override public Set<T> asSet() { return Collections.singleton(reference);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.base.Supplier; import com.google.common.base.Suppliers; import com.google.common.util.concurrent.TestExceptions.SomeCheckedException; import java.security.Permission; import java.util.concurrent.Callable;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
/** A benchmark comparing the various striped implementations. */ @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) public class StripedBenchmark { private static final Supplier<Lock> LOCK_SUPPLIER = new Supplier<Lock>() { @Override public Lock get() { return new ReentrantLock(); } }; @Param({"2", "8", "64", "1024", "65536"}) int numStripes;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
/** A benchmark comparing the various striped implementations. */ @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) public class StripedBenchmark { private static final Supplier<Lock> LOCK_SUPPLIER = new Supplier<Lock>() { @Override public Lock get() { return new ReentrantLock(); } }; @Param({"2", "8", "64", "1024", "65536"}) int numStripes;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
} public void testOr_supplier_absent() { assertEquals("fallback", Optional.absent().or(Suppliers.ofInstance("fallback"))); } public void testOr_nullSupplier_absent() { Supplier<Object> nullSupplier = (Supplier<Object>) Suppliers.<@Nullable Object>ofInstance(null); Optional<Object> absentOptional = Optional.absent(); assertThrows(NullPointerException.class, () -> absentOptional.or(nullSupplier)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java
public abstract class AbstractIdleService implements Service { /* Thread names will look like {@code "MyService STARTING"}. */ private final Supplier<String> threadNameSupplier = new ThreadNameSupplier(); @WeakOuter private final class ThreadNameSupplier implements Supplier<String> { @Override public String get() { return serviceName() + " " + state(); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 13:59:28 UTC 2023 - 5.3K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.20.md
- The label applied to control-plane nodes "node-role.kubernetes.io/master" is now deprecated and will be removed in a future release after a GA deprecation period. - Introduce a new label "node-role.kubernetes.io/control-plane" that will be applied in parallel to "node-role.kubernetes.io/master" until the removal of the "node-role.kubernetes.io/master" label.
Registered: Fri Nov 01 09:05:11 UTC 2024 - Last Modified: Wed Jan 19 21:05:45 UTC 2022 - 409K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FakeTicker.java
@SuppressWarnings("Java7ApiChecker") // guava-android can rely on library desugaring now. public FakeTicker advance(Duration duration) { return advance(duration.toNanos()); } /** * Sets the increment applied to the ticker whenever it is queried. * * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when * queried. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 3.6K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java
listener.transferInitiated(event(session, resource, TransferEvent.EventType.INITIATED)); Thread.sleep(500); // to make sure queue is processed, cancellation applied // subsequent call will cancel assertThrows( TransferCancelledException.class, () -> listener.transferStarted(event(session, resource, TransferEvent.EventType.STARTED)));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.9K bytes - Viewed (0)