- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 495 for iterable (0.04 sec)
-
guava/src/com/google/common/collect/Iterables.java
* this method returns {@code true} if {@code iterable1} and {@code iterable2} contain the same * number of elements and every element of {@code iterable1} is equal to the corresponding element * of {@code iterable2}. */ public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) { if (iterable1 instanceof Collection && iterable2 instanceof Collection) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 43.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
*/ @GwtCompatible public final class Iterables { private Iterables() {} /** Returns an unmodifiable view of {@code iterable}. */ public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable( Iterable<? extends T> iterable) { checkNotNull(iterable); if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 18:35:28 UTC 2025 - 43.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayIterator.java
/** * Returns an {@link Iterable} that wraps the array for use in a for-each statement. * * @param <T> the type of elements * @param items the array of elements to iterate (must not be {@literal null}) * @return an {@link Iterable} wrapping the array */ public static <T> Iterable<T> iterable(final T... items) { assertArgumentNotNull("items", items);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
public final class MinimalIterable<E extends @Nullable Object> implements Iterable<E> { /** Returns an iterable whose iterator returns the given elements in order. */ public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) { // Make sure to get an unmodifiable iterator return new MinimalIterable<>(asList(elements).iterator()); } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
Iterable<String> iterable = singletonList("foo"); assertEquals("foo", Iterables.getLast(iterable, "bar")); } public void testGetLast_withDefault_empty() { Iterable<String> iterable = emptyList(); assertEquals("bar", Iterables.getLast(iterable, "bar")); } public void testGetLast_withDefault_empty_null() { Iterable<String> iterable = emptyList();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 45.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassIterator.java
/** * Returns an {@link Iterable} that wraps a {@link ClassIterator} for use in a for-each statement. * * @param clazz the class (must not be {@literal null}) * @return an {@link Iterable} wrapping a {@link ClassIterator} */ public static Iterable<Class<?>> iterable(final Class<?> clazz) { return iterable(clazz, true); } /**Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/LineIterator.java
} /** * Returns an {@link Iterable} that wraps a {@link LineIterator} for use in enhanced for-loops. * * @param reader * The {@link BufferedReader} to read strings from. Must not be {@literal null}. * @return An {@link Iterable} that wraps a {@link LineIterator}. */ public static Iterable<String> iterable(final BufferedReader reader) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 3.6K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java
private final boolean errors; private final T value; private final Iterable<? extends ModelProblem> problems; private Result(boolean errors, T model, Iterable<? extends ModelProblem> problems) { this.errors = errors; this.value = model; this.problems = problems; } public Iterable<? extends ModelProblem> getProblems() { return problems; }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Mar 26 19:31:34 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/DerivedTestIteratorGenerator.java
import java.util.Iterator; /** * Adapts a test iterable generator to give a TestIteratorGenerator. * * @author George van den Driessche */ @GwtCompatible public final class DerivedTestIteratorGenerator<E> implements TestIteratorGenerator<E>, DerivedGenerator { private final TestSubjectGenerator<? extends Iterable<E>> collectionGenerator; public DerivedTestIteratorGenerator(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Apr 21 02:27:51 UTC 2017 - 1.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SingleValueIterator.java
/** * Returns an {@link Iterable} that wraps a {@link SingleValueIterator} for use in a for-each statement. * * @param <E> the element type * @param value the single value returned by the iterator * @return an {@link Iterable} wrapping a {@link SingleValueIterator} */ public static <E> Iterable<E> iterable(final E value) { return () -> new SingleValueIterator<>(value);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.1K bytes - Viewed (0)