- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 234 for Supplier (0.09 sec)
-
android/guava/src/com/google/common/hash/LongAddables.java
package com.google.common.hash; import com.google.common.base.Supplier; import java.util.concurrent.atomic.AtomicLong; /** * Source of {@link LongAddable} objects that deals with GWT, Unsafe, and all that. * * @author Louis Wasserman */ final class LongAddables { private static final Supplier<LongAddable> SUPPLIER; static { Supplier<LongAddable> supplier; try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/stream/StreamUtil.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.4K bytes - Viewed (0) -
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 Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Feb 28 23:31:09 UTC 2024 - 4.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Functions.java
Supplier<T> supplier) { return new SupplierFunction<>(supplier); } /** * @see Functions#forSupplier */ private static final class SupplierFunction< F extends @Nullable Object, T extends @Nullable Object> implements Function<F, T>, Serializable { private final Supplier<T> supplier; private SupplierFunction(Supplier<T> supplier) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 15.4K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheLoader.java
/** * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need * to create a <i>new</i> supplier just to pass it in here; just subclass {@code CacheLoader} and * implement {@link #load load} instead. * * <p>The returned object is serializable if {@code supplier} is serializable. * * @param supplier the supplier to be used for loading values; must never return {@code null}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
static Stream<Arguments> implementations() { return Stream.of(Arguments.of("returns self", (Supplier<SmbRenewableCredentials>) SelfRenewingCreds::new, true, false), Arguments.of("returns new", (Supplier<SmbRenewableCredentials>) NewRenewingCreds::new, false, true), Arguments.of("returns null", (Supplier<SmbRenewableCredentials>) NullRenewingCreds::new, false, false)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
@SuppressWarnings("unchecked") Supplier<String> supplier = mock(Supplier.class); when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom"))); // Act & Assert: the exception is propagated and interaction recorded once RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
Striped.semaphore(256, 1)); } private static final Supplier<ReadWriteLock> READ_WRITE_LOCK_SUPPLIER = new Supplier<ReadWriteLock>() { @Override public ReadWriteLock get() { return new ReentrantReadWriteLock(); } }; private static final Supplier<Lock> LOCK_SUPPLER = new Supplier<Lock>() { @Override public Lock get() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
Striped.semaphore(256, 1)); } private static final Supplier<ReadWriteLock> READ_WRITE_LOCK_SUPPLIER = new Supplier<ReadWriteLock>() { @Override public ReadWriteLock get() { return new ReentrantReadWriteLock(); } }; private static final Supplier<Lock> LOCK_SUPPLER = new Supplier<Lock>() { @Override public Lock get() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
} } public void testForSupplier() { Supplier<Integer> supplier = new CountingSupplier(); Function<@Nullable Object, Integer> function = Functions.forSupplier(supplier); assertEquals(1, (int) function.apply(null)); assertEquals(2, (int) function.apply("foo")); new EqualsTester() .addEqualityGroup(function, Functions.forSupplier(supplier))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0)