- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 623 for iterables (0.07 seconds)
-
src/main/java/org/codelibs/core/collection/ArrayIterator.java
protected int index = 0; /** * 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);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 2.5K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
public void testOf_empty() { Iterable<String> iterable = MinimalIterable.<String>of(); Iterator<String> iterator = iterable.iterator(); assertFalse(iterator.hasNext()); assertThrows(NoSuchElementException.class, iterator::next); assertThrows(IllegalStateException.class, iterable::iterator); } public void testOf_one() { Iterable<String> iterable = MinimalIterable.of("a");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 2.6K bytes - Click Count (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(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 1.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterable<String> iterable = asList("a", "b"); Iterator<String> cycle = Iterators.cycle(iterable); cycle.next(); assertThrows(UnsupportedOperationException.class, () -> cycle.remove()); } public void testCycleRemoveAfterHasNext() { Iterable<String> iterable = Lists.newArrayList("a"); Iterator<String> cycle = Iterators.cycle(iterable); assertTrue(cycle.hasNext());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public Iterable<UseIterable<? extends Iterable<?>>> wildcardOfImplicitBoundedIsSubtypeOfWildcardOfExplicitlyBounded( List<UseIterable<?>> withImplicitBounds) { return isSubtype(withImplicitBounds); } @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true) public Iterable<UseSerializableIterable<? extends Iterable<?>>>
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/IndexedIterator.java
/** * Returns an {@link Iterable} that wraps an {@link IndexedIterator} for use in a for-each statement. * * @param <T> the element type * @param iterable the iterable (must not be {@literal null}) * @return an {@link Iterable} wrapping an {@link IndexedIterator} */ public static <T> Iterable<Indexed<T>> indexed(final Iterable<T> iterable) { assertArgumentNotNull("iterable", iterable);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
Iterable<Integer> iterable = iterable(Collections.<Integer>emptySet()); assertThat(ImmutableIntArray.copyOf(iterable)).isSameInstanceAs(ImmutableIntArray.of()); } public void testCopyOf_iterable_notCollection_nonempty() { List<Integer> list = Arrays.asList(0, 1, 3); ImmutableIntArray iia = ImmutableIntArray.copyOf(iterable(list)); list.set(2, 2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
} private static boolean isEmpty(Iterable<?> iterable) { return iterable instanceof Collection ? ((Collection<?>) iterable).isEmpty() : !iterable.iterator().hasNext(); } public static void assertEmpty(Iterable<?> iterable) { if (!isEmpty(iterable)) { fail("Not true that " + iterable + " is empty"); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AllEqualOrdering.java
return 0; } @Override public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) { return Lists.newArrayList(iterable); } @Override public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { return ImmutableList.copyOf(iterable); } @SuppressWarnings("unchecked") @Override public <S extends @Nullable Object> Ordering<S> reverse() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 1.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AllEqualOrdering.java
return 0; } @Override public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) { return Lists.newArrayList(iterable); } @Override public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { return ImmutableList.copyOf(iterable); } @SuppressWarnings("unchecked") @Override public <S extends @Nullable Object> Ordering<S> reverse() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 1.9K bytes - Click Count (0)