Searched refs:MinimalIterable (Results 1 – 8 of 8) sorted by relevance
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | MinimalIterable.java | 54 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/ |
D | MinimalIterableTest.java | 36 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/ |
D | SetsTest.java | 31 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()
|
D | AbstractImmutableSetTest.java | 24 import com.google.common.collect.testing.MinimalIterable; 423 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b"); in testBuilderAddAllHandlesNullsCorrectly()
|
D | ImmutableListTest.java | 24 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/ |
D | AbstractImmutableSetTest.java | 28 import com.google.common.collect.testing.MinimalIterable; 447 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b"); in testBuilderAddAllHandlesNullsCorrectly()
|
D | SetsTest.java | 36 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));
|
D | ImmutableListTest.java | 30 import com.google.common.collect.testing.MinimalIterable; 800 Iterable<String> iterableWithNulls = MinimalIterable.of("a", null, "b");
|