- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 396 for iterable (0.04 sec)
-
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
/** Most of the tests in this class run against every one of these caches. */ private Iterable<LoadingCache<Object, Object>> caches() { // lots of different ways to configure a LoadingCache CacheBuilderFactory factory = cacheFactory(); return Iterables.transform( factory.buildAllPermutations(), new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
return fromArrayWithExpectedSize(array, expectedSize); } /** * Returns an immutable set containing each of {@code elements}, minus duplicates, in the order * each appears first in the source iterable. This method iterates over {@code elements} only * once. * * <p><b>Performance note:</b> This method will sometimes recognize that the actual copy operation
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ObjectArrays.java
} @Nullable Object[] result = new Object[length]; arraycopy(elements, offset, result, 0, length); return result; } @CanIgnoreReturnValue private static @Nullable Object[] fillArray(Iterable<?> elements, @Nullable Object[] array) { int i = 0; for (Object element : elements) { array[i++] = element; } return array; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
* entries in the same order as the original iterable. * * @throws NullPointerException if any key, value, or entry is null * @throws IllegalArgumentException if two entries have the same key * @since 19.0 */ public static <K, V> ImmutableMap<K, V> copyOf( Iterable<? extends Entry<? extends K, ? extends V>> entries) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 44.3K bytes - Viewed (0) -
guava/src/com/google/common/math/Stats.java
* * @param values a series of values, which will be converted to {@code double} values (this may * cause loss of precision) */ public static Stats of(Iterable<? extends Number> values) { StatsAccumulator accumulator = new StatsAccumulator(); accumulator.addAll(values); return accumulator.snapshot(); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 24.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
private static final Iterable<Integer> SOME_ITERABLE = new SomeIterable(); private static final class RemoveFirstFunction implements Function<String, String>, Serializable { @Override public String apply(String from) { return (from.length() == 0) ? from : from.substring(1); } } private static class SomeIterable implements Iterable<Integer>, Serializable { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
* entries in the same order as the original iterable. * * @throws NullPointerException if any key, value, or entry is null * @throws IllegalArgumentException if two entries have the same key * @since 19.0 */ public static <K, V> ImmutableMap<K, V> copyOf( Iterable<? extends Entry<? extends K, ? extends V>> entries) { int initialCapacity =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 41.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TableCollectorsTest.java
// This function specifically returns a BiPredicate, because Guava7’s Equivalence class does not // actually implement BiPredicate, and CollectorTests expects a BiPredicate. static <C, E extends @Nullable Object, R extends Iterable<E>> BiPredicate<C, C> pairwiseOnResultOf(Function<C, R> arg) { Equivalence<C> equivalence = Equivalence.equals().<E>pairwise().onResultOf(arg); return equivalence::equivalent; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectArrays.java
} @Nullable Object[] result = new Object[length]; arraycopy(elements, offset, result, 0, length); return result; } @CanIgnoreReturnValue private static @Nullable Object[] fillArray(Iterable<?> elements, @Nullable Object[] array) { int i = 0; for (Object element : elements) { array[i++] = element; } return array; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumBiMapTest.java
@SuppressWarnings("unchecked") @Override public Entry<Country, Currency>[] createArray(int length) { return (Entry<Country, Currency>[]) new Entry<?, ?>[length]; } @Override public Iterable<Entry<Country, Currency>> order(List<Entry<Country, Currency>> insertionOrder) { return orderEntriesByKey(insertionOrder); } @Override public Country[] createKeyArray(int length) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.9K bytes - Viewed (0)