- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 285 for Supplied (0.18 sec)
-
guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
/** A benchmark comparing the various striped implementations. */ @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) @NullUnmarked 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBasedTable.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 java.io.Serializable; import java.util.LinkedHashMap; import java.util.Map; /** * Implementation of {@link Table} using linked hash tables. This guarantees predictable iterationRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashBasedTable.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 java.io.Serializable; import java.util.LinkedHashMap; import java.util.Map; /** * Implementation of {@link Table} using linked hash tables. This guarantees predictable iterationRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
if (bufferSupplierOrBytes instanceof byte[]) { buf = (byte[]) bufferSupplierOrBytes; } else { @SuppressWarnings("unchecked") java.util.function.Supplier<byte[]> sup = (java.util.function.Supplier<byte[]>) bufferSupplierOrBytes; buf = sup.get(); } // Act + Assert Throwable t = assertThrows(expected, () -> new MIEName(buf));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FakeTicker.java
*/ @GwtIncompatible @J2ktIncompatible @CanIgnoreReturnValue 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java
*/ package org.codelibs.fess.mylasta.direction.sponsor; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.util.UUID; import java.util.function.Supplier; import java.util.stream.Collectors; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.Constants;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectCollectors.java
import java.util.EnumMap; import java.util.EnumSet; import java.util.LinkedHashMap; import java.util.TreeMap; import java.util.function.BinaryOperator; import java.util.function.Function; import java.util.function.Supplier; import java.util.function.ToIntFunction; import java.util.stream.Collector; import java.util.stream.Stream; import org.jspecify.annotations.Nullable; /** Collectors utilities for {@code common.collect} internals. */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 16.6K 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/util/CopyOptions.java
* Sets a converter. * * @param converter * The converter. Must not be {@literal null}. * @param propertyNames * The property names to which this converter will be applied. Each element must not be {@literal null} or an empty string. * @return This instance itself */ public CopyOptions converter(final Converter converter, final CharSequence... propertyNames) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 17.5K bytes - Viewed (0)