- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 542 for supplied (0.05 seconds)
-
guava/src/com/google/common/collect/Multimaps.java
java.util.function.Supplier<M> multimapSupplier) { return CollectCollectors.<T, K, V, M>toMultimap(keyFunction, valueFunction, multimapSupplier); } /** * Returns a {@code Collector} accumulating entries into a {@code Multimap} generated from the * specified supplier. Each input element is mapped to a key and a stream of values, each of whichCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 86.3K 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) -
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) -
android/guava/src/com/google/common/cache/LongAddables.java
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 */ @GwtCompatible final class LongAddables { private static final Supplier<LongAddable> SUPPLIER; static { Supplier<LongAddable> supplier; try {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 2K bytes - Click Count (0) -
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 {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.9K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/InvalidatableSet.java
import com.google.common.base.Supplier; import com.google.common.collect.ForwardingSet; import java.util.Set; /** * A subclass of `ForwardingSet` that throws `IllegalStateException` on invocation of any method * (except `hashCode` and `equals`) if the provided `Supplier` returns false. */ final class InvalidatableSet<E> extends ForwardingSet<E> { private final Supplier<Boolean> validator; private final Set<E> delegate;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 1.8K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/cache/RequestCache.java
* @param supplier The function to execute and cache the result * @return The result from the supplier (either fresh or cached) * @throws RuntimeException Any exception thrown by the supplier will be cached and re-thrown on subsequent calls */ <REQ extends Request<?>, REP extends Result<REQ>> REP request(REQ req, Function<REQ, REP> supplier); /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Feb 07 00:45:02 GMT 2025 - 3.5K 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/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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0)