Home
last modified time | relevance | path

Searched refs:MinimalIterable (Results 1 – 8 of 8) sorted by relevance

/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMinimalIterable.java54 public final class MinimalIterable<E> implements Iterable<E> { class
58 public static <E> MinimalIterable<E> of(E... elements) { in of()
60 return new MinimalIterable<E>(Arrays.asList(elements).iterator()); in of()
69 public static <E> MinimalIterable<E> from(final Collection<E> elements) { in from()
70 return (MinimalIterable) of(elements.toArray()); in from()
75 private MinimalIterable(Iterator<E> iterator) { in MinimalIterable() method in MinimalIterable
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java36 Iterable<String> iterable = MinimalIterable.<String>of(); in testOf_empty()
52 Iterable<String> iterable = MinimalIterable.of("a"); in testOf_one()
71 = MinimalIterable.from(Collections.<String>emptySet()); in testFrom_empty()
88 = MinimalIterable.from(Collections.singleton("a")); in testFrom_one()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSetsTest.java31 import com.google.common.collect.testing.MinimalIterable;
107 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of()); in testImmutableEnumSet_fromIterable()
111 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B)); in testImmutableEnumSet_fromIterable()
115 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B)); in testImmutableEnumSet_fromIterable()
DAbstractImmutableSetTest.java24 import com.google.common.collect.testing.MinimalIterable;
423 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b"); in testBuilderAddAllHandlesNullsCorrectly()
DImmutableListTest.java24 import com.google.common.collect.testing.MinimalIterable;
483 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b"); in testBuilderAddAllHandlesNullsCorrectly()
/external/guava/guava-tests/test/com/google/common/collect/
DAbstractImmutableSetTest.java28 import com.google.common.collect.testing.MinimalIterable;
447 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b"); in testBuilderAddAllHandlesNullsCorrectly()
DSetsTest.java36 import com.google.common.collect.testing.MinimalIterable;
327 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
331 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B));
335 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B));
DImmutableListTest.java30 import com.google.common.collect.testing.MinimalIterable;
800 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b");