- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 341 for supplier (0.07 seconds)
-
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))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Optional.java
* * @throws NullPointerException if this optional's value is absent and the supplier returns {@code * null} */ public abstract T or(Supplier<? extends T> supplier); /** * Returns the contained instance if it is present; {@code null} otherwise. If the instance is * known to be present, use {@link #get()} instead. * * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/TableCollectors.java
import com.google.common.collect.Tables.AbstractCell; import java.util.ArrayList; import java.util.List; import java.util.function.BinaryOperator; import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Collector; import org.jspecify.annotations.Nullable; /** Collectors utilities for {@code common.collect.Table} internals. */ @GwtCompatible final class TableCollectors {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 7.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TableCollectors.java
import com.google.common.collect.Tables.AbstractCell; import java.util.ArrayList; import java.util.List; import java.util.function.BinaryOperator; import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Collector; import org.jspecify.annotations.Nullable; /** Collectors utilities for {@code common.collect.Table} internals. */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:07:06 GMT 2025 - 7.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java
import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.List; import java.util.Objects; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; import org.apache.maven.api.services.ModelBuilderException; import org.apache.maven.api.services.ModelSource; import org.apache.maven.artifact.DefaultArtifact;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Nov 06 18:32:25 GMT 2025 - 4.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
Striped.custom(256, FAIR_LOCK_SUPPLER), Striped.semaphore(100, 1), Striped.semaphore(256, 1)); } private static final Supplier<Lock> FAIR_LOCK_SUPPLER = () -> new ReentrantLock(true); private static final Supplier<Semaphore> SEMAPHORE_SUPPLER = () -> new Semaphore(1, false); private static List<Striped<?>> weakImplementations() { return ImmutableList.<Striped<?>>builder()
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
Striped.custom(256, FAIR_LOCK_SUPPLER), Striped.semaphore(100, 1), Striped.semaphore(256, 1)); } private static final Supplier<Lock> FAIR_LOCK_SUPPLER = () -> new ReentrantLock(true); private static final Supplier<Semaphore> SEMAPHORE_SUPPLER = () -> new Semaphore(1, false); private static List<Striped<?>> weakImplementations() { return ImmutableList.<Striped<?>>builder()
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java
@J2ktIncompatible 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(); } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 5.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestStreamSupplier.java
* limitations under the License. */ package com.google.common.io; import org.jspecify.annotations.NullUnmarked; /** * Interface for a supplier of streams that can report whether a stream was opened and whether that * stream was closed. Intended for use in a test where only a single stream should be opened and * possibly closed. * * @author Colin Decker */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/TestStreamSupplier.java
* limitations under the License. */ package com.google.common.io; import org.jspecify.annotations.NullUnmarked; /** * Interface for a supplier of streams that can report whether a stream was opened and whether that * stream was closed. Intended for use in a test where only a single stream should be opened and * possibly closed. * * @author Colin Decker */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.1K bytes - Click Count (0)