- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 125 for Suppliers (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.base.Suppliers; import com.google.common.collect.ImmutableList; import com.google.common.testing.ClassSanityTester; import com.google.common.util.concurrent.MoreExecutors.Application; import java.lang.Thread.State;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.1K bytes - Click Count (0) -
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) -
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))
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/cache/CacheBuilder.java
import com.google.common.annotations.J2ktIncompatible; import com.google.common.base.Ascii; import com.google.common.base.Equivalence; import com.google.common.base.MoreObjects; import com.google.common.base.Supplier; import com.google.common.base.Suppliers; import com.google.common.base.Ticker; import com.google.common.cache.AbstractCache.SimpleStatsCounter; import com.google.common.cache.AbstractCache.StatsCounter;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 51.7K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Log.java
* under the License. */ package org.apache.maven.api.plugin; import java.util.function.Supplier; import org.apache.maven.api.annotations.Experimental; import org.apache.maven.api.annotations.Provider; /** * This interface supplies the API for providing feedback to the user from the {@code Mojo}, * using standard Maven channels.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Sep 28 09:03:24 GMT 2024 - 5.4K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenSessionBuilderSupplier.java
import org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy; import static java.util.Objects.requireNonNull; /** * A simple {@link Supplier} of {@link SessionBuilder} instances, that on each call supplies newly * constructed instance. To create session out of builder, use {@link SessionBuilder#build()}. For proper closing * of sessions, use {@link CloseableSession#close()} method on built instance(s).Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Mar 28 11:22:05 GMT 2026 - 8.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
* obtained from the passed supplier. * * @param stripes the minimum number of stripes (locks) required * @param supplier a {@code Supplier<L>} object to obtain locks from * @return a new {@code Striped<L>} * @since 33.5.0 */ public static <L> Striped<L> custom(int stripes, Supplier<L> supplier) { return new CompactStriped<>(stripes, supplier); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 22:01:32 GMT 2025 - 20.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLog.java
@Override public void debug(Throwable error) { logger.debug("", error); } @Override public void debug(Supplier<String> content) { if (isDebugEnabled()) { logger.debug(content.get()); } } @Override public void debug(Supplier<String> content, Throwable error) { if (isDebugEnabled()) { logger.debug(content.get(), error); } }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java
Supplier<Object> supplier = () -> null; monitorTarget.append(buf, "testKey", supplier); assertEquals("\"testKey\":null", buf.toString()); } // Test append method with Integer value @Test public void test_append_integerValue() { StringBuilder buf = new StringBuilder(); Supplier<Object> supplier = () -> Integer.valueOf(123);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/logic/AccessContextLogic.java
/** * Create the access context. * @param resource The access context resource. * @param userTypeSupplier The supplier of user type. * @param userBeanSupplier The supplier of user bean. * @param appTypeSupplier The supplier of application type. * @return The access context. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 4K bytes - Click Count (0)