diff options
Diffstat (limited to 'guava-testlib/src/com/google/common/collect/testing/SampleElements.java')
-rw-r--r-- | guava-testlib/src/com/google/common/collect/testing/SampleElements.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/guava-testlib/src/com/google/common/collect/testing/SampleElements.java b/guava-testlib/src/com/google/common/collect/testing/SampleElements.java index 30ddf65..2674dbb 100644 --- a/guava-testlib/src/com/google/common/collect/testing/SampleElements.java +++ b/guava-testlib/src/com/google/common/collect/testing/SampleElements.java @@ -16,10 +16,6 @@ package com.google.common.collect.testing; -import com.google.common.annotations.GwtCompatible; - -import java.util.Arrays; -import java.util.Iterator; import java.util.Map; /** @@ -29,8 +25,7 @@ import java.util.Map; * * @author Kevin Bourrillion */ -@GwtCompatible -public class SampleElements<E> implements Iterable<E> { +public class SampleElements<E> { // TODO: rename e3, e4 => missing1, missing2 public final E e0; public final E e1; @@ -46,11 +41,6 @@ public class SampleElements<E> implements Iterable<E> { this.e4 = e4; } - @Override - public Iterator<E> iterator() { - return Arrays.asList(e0, e1, e2, e3, e4).iterator(); - } - public static class Strings extends SampleElements<String> { public Strings() { // elements aren't sorted, to better test SortedSet iteration ordering @@ -65,13 +55,6 @@ public class SampleElements<E> implements Iterable<E> { public static final String AFTER_LAST_2 = "zz"; } - public static class Chars extends SampleElements<Character> { - public Chars() { - // elements aren't sorted, to better test SortedSet iteration ordering - super('b', 'a', 'c', 'd', 'e'); - } - } - public static class Enums extends SampleElements<AnEnum> { public Enums() { // elements aren't sorted, to better test SortedSet iteration ordering @@ -79,13 +62,6 @@ public class SampleElements<E> implements Iterable<E> { } } - public static class Ints extends SampleElements<Integer> { - public Ints() { - // elements aren't sorted, to better test SortedSet iteration ordering - super(1, 0, 2, 3, 4); - } - } - public static <K, V> SampleElements<Map.Entry<K, V>> mapEntries( SampleElements<K> keys, SampleElements<V> values) { return new SampleElements<Map.Entry<K, V>>( |