Class ReserializingTestSetGenerator<E>
- java.lang.Object
-
- com.google.common.collect.testing.ReserializingTestCollectionGenerator<E>
-
- com.google.common.collect.testing.ReserializingTestSetGenerator<E>
-
- All Implemented Interfaces:
TestCollectionGenerator<E>
,TestContainerGenerator<Collection<E>,E>
,TestSetGenerator<E>
@GwtIncompatible public class ReserializingTestSetGenerator<E> extends ReserializingTestCollectionGenerator<E> implements TestSetGenerator<E>
Reserializes the sets created by another test set generator.TODO: make CollectionTestSuiteBuilder test reserialized collections
- Author:
- Jesse Wilson
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<E>
create(Object... elements)
Creates a new container containing the given elements.static <E> TestSetGenerator<E>
newInstance(TestSetGenerator<E> delegate)
-
Methods inherited from class com.google.common.collect.testing.ReserializingTestCollectionGenerator
createArray, newInstance, order, samples
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, order, samples
-
-
-
-
Method Detail
-
newInstance
public static <E> TestSetGenerator<E> newInstance(TestSetGenerator<E> delegate)
-
create
public Set<E> create(Object... elements)
Description copied from interface:TestContainerGenerator
Creates a new container containing the given elements. TODO: would be nice to figure out how to use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an array of the erased type.- Specified by:
create
in interfaceTestContainerGenerator<Collection<E>,E>
- Specified by:
create
in interfaceTestSetGenerator<E>
- Overrides:
create
in classReserializingTestCollectionGenerator<E>
-
-