com.google.common.collect.testing
Class SampleElements<E>
java.lang.Object
com.google.common.collect.testing.SampleElements<E>
- All Implemented Interfaces:
- Iterable<E>
- Direct Known Subclasses:
- SampleElements.Chars, SampleElements.Colliders, SampleElements.Enums, SampleElements.Ints, SampleElements.Strings, SampleElements.Unhashables
@GwtCompatible
public class SampleElements<E>
- extends Object
- implements Iterable<E>
A container class for the five sample elements we need for testing.
This class is GWT compatible.
- Author:
- Kevin Bourrillion
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
e0
public final E e0
e1
public final E e1
e2
public final E e2
e3
public final E e3
e4
public final E e4
SampleElements
public SampleElements(E e0,
E e1,
E e2,
E e3,
E e4)
iterator
public Iterator<E> iterator()
- Specified by:
iterator
in interface Iterable<E>
mapEntries
public static <K,V> SampleElements<Map.Entry<K,V>> mapEntries(SampleElements<K> keys,
SampleElements<V> values)
Copyright © 2010-2012. All Rights Reserved.