- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 160 for Supplier (0.15 sec)
-
android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
} private static void assertChecksum(ImmutableSupplier<Checksum> supplier, String input) { byte[] bytes = HashTestUtils.ascii(input); Checksum checksum = supplier.get(); checksum.update(bytes, 0, bytes.length); long value = checksum.getValue(); String toString = "name"; HashFunction func = new ChecksumHashFunction(supplier, 32, toString); assertEquals(toString, func.toString());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 30 14:33:12 GMT 2018 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashBasedTable.java
*/ package com.google.common.collect; import static com.google.common.collect.CollectPreconditions.checkNonnegative; import com.google.common.annotations.GwtCompatible; 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 iteration
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Jan 24 17:47:51 GMT 2022 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/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 */ @ElementTypesAreNonnullByDefault final class LongAddables { private static final Supplier<LongAddable> SUPPLIER; static { Supplier<LongAddable> supplier; try {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 04 17:27:14 GMT 2022 - 1.9K bytes - Viewed (0) -
guava/src/com/google/common/cache/LongAddables.java
LongAdder unused = new LongAdder(); supplier = new Supplier<LongAddable>() { @Override public LongAddable get() { return new LongAdder(); } }; } catch (Throwable t) { // we really want to catch *everything* supplier = new Supplier<LongAddable>() { @Override public LongAddable get() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jan 04 17:27:14 GMT 2022 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/NewCustomTableTest.java
@ElementTypesAreNonnullByDefault public class NewCustomTableTest extends AbstractTableTest<Character> { @Override protected Table<String, Integer, Character> create(@Nullable Object... data) { Supplier<TreeMap<Integer, Character>> factory = new Supplier<TreeMap<Integer, Character>>() { @Override public TreeMap<Integer, Character> get() { return Maps.newTreeMap(); } };
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 16:54:11 GMT 2024 - 2K bytes - Viewed (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>} */ static <L> Striped<L> custom(int stripes, Supplier<L> supplier) { return new CompactStriped<>(stripes, supplier); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 10 20:55:18 GMT 2023 - 20.3K bytes - Viewed (1) -
android/guava/src/com/google/common/collect/StandardRowSortedTable.java
*/ package com.google.common.collect; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Supplier; import com.google.j2objc.annotations.WeakOuter; import java.util.Comparator; import java.util.Map; import java.util.Set; import java.util.SortedMap; import java.util.SortedSet; import javax.annotation.CheckForNull;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jul 15 15:41:16 GMT 2021 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Callables.java
* * @param callable The callable to wrap * @param nameSupplier The supplier of thread names, {@link Supplier#get get} will be called once * for each invocation of the wrapped callable. */ @J2ktIncompatible @GwtIncompatible // threads static <T extends @Nullable Object> Callable<T> threadRenaming( Callable<T> callable, Supplier<String> nameSupplier) { checkNotNull(nameSupplier); checkNotNull(callable);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 18:32:03 GMT 2023 - 4.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Functions.java
implements Function<F, T>, Serializable { private final Supplier<T> supplier; private SupplierFunction(Supplier<T> supplier) { this.supplier = checkNotNull(supplier); } @Override @ParametricNullness public T apply(@ParametricNullness F input) { return supplier.get(); } @Override public boolean equals(@CheckForNull Object obj) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 14.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java
static Construction<Map<Object, Object>> mapFromKeys( Supplier<Map<Object, Object>> mutableSupplier) { return keys -> { Map<Object, Object> map = mutableSupplier.get(); for (Object key : keys) { map.put(key, new Object()); } return map; }; } static Construction<Set<Object>> setFromElements(Supplier<Set<Object>> mutableSupplier) { return elements -> {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 21:01:39 GMT 2023 - 8.6K bytes - Viewed (0)