- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 382 for iterables (0.07 sec)
-
android/guava/src/com/google/common/collect/AbstractMultimap.java
@Override public boolean put(@ParametricNullness K key, @ParametricNullness V value) { return get(key).add(value); } @CanIgnoreReturnValue @Override public boolean putAll(@ParametricNullness K key, Iterable<? extends V> values) { checkNotNull(values); // make sure we only call values.iterator() once // and we only call get(key) if values is nonempty if (values instanceof Collection) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* methods, like stream(Iterable), we have to rely on users not to call them without library * desugaring. */ @IgnoreJRERequirement public final class Streams { /** * Returns a sequential {@link Stream} of the contents of {@code iterable}, delegating to {@link * Collection#stream} if possible. */ public static <T extends @Nullable Object> Stream<T> stream(Iterable<T> iterable) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java
import com.google.common.collect.testing.features.MapFeature; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.junit.Ignore; /** * Tests for {@link Multimap#replaceValues(Object, Iterable)}. * * @author Louis Wasserman */ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 5.3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java
checkNotNull(elements); // for GWT for (E element : elements) { add(checkNotNull(element)); } return this; } @CanIgnoreReturnValue public Builder<E> addAll(Iterable<? extends E> elements) { checkNotNull(elements); // for GWT for (E element : elements) { add(checkNotNull(element)); } return this; } @CanIgnoreReturnValue
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LegacyComparable.java
static final LegacyComparable Y = new LegacyComparable("y"); static final LegacyComparable Z = new LegacyComparable("z"); static final Iterable<LegacyComparable> VALUES_FORWARD = asList(X, Y, Z); static final Iterable<LegacyComparable> VALUES_BACKWARD = asList(Z, Y, X); private final String value; LegacyComparable(String value) { this.value = value; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 2.5K 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) {
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/base/ConverterTest.java
assertEquals(STR_VAL, STR_TO_LONG.reverse().convert(LONG_VAL)); Iterable<Long> convertedValues = STR_TO_LONG.convertAll(STRINGS); assertEquals(LONGS, ImmutableList.copyOf(convertedValues)); } public void testConvertAllIsView() { List<String> mutableList = Lists.newArrayList("789", "123"); Iterable<Long> convertedValues = STR_TO_LONG.convertAll(mutableList);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java
} @Override public SampleElements<String> sampleValues() { return new SampleElements<>("January", "February", "March", "April", "May"); } @Override public Collection<String> createCollection(Iterable<? extends String> values) { return copyToList(values); } @Override public final ListMultimap<String, String> create(Object... entries) { @SuppressWarnings("unchecked")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetsFilterNavigableSetTest.java
import org.jspecify.annotations.NullUnmarked; @NullUnmarked public final class SetsFilterNavigableSetTest extends AbstractFilteredNavigableSetTest { @Override NavigableSet<Integer> createUnfiltered(Iterable<Integer> contents) { return Sets.newTreeSet(contents); } @Override NavigableSet<Integer> filter( NavigableSet<Integer> elements, Predicate<? super Integer> predicate) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java
*/ protected abstract T create(UnhashableObject[] elements); @Override public UnhashableObject[] createArray(int length) { return new UnhashableObject[length]; } @Override public Iterable<UnhashableObject> order(List<UnhashableObject> insertionOrder) { return insertionOrder; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 1.9K bytes - Viewed (0)