Class ListGenerators.ImmutableListOfGenerator
java.lang.Object
com.google.common.collect.testing.TestStringListGenerator
com.google.common.collect.testing.google.ListGenerators.ImmutableListOfGenerator
- All Implemented Interfaces:
TestCollectionGenerator<String>, TestContainerGenerator<Collection<String>, String>, TestListGenerator<String>
- Enclosing class:
ListGenerators
- Author:
- Hayward Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new collection containing the given elements; implement this method instead ofTestStringListGenerator.create(Object...).Methods inherited from class TestStringListGenerator
create, createArray, order, samplesModifier and TypeMethodDescriptionCreates a new container containing the given elements.String[]createArray(int length) Helper method to create an array of the appropriate type used by this generator.Returns the original element list, unchanged.samples()Returns the sample elements that this generate populates its container with.
-
Constructor Details
-
ImmutableListOfGenerator
public ImmutableListOfGenerator()
-
-
Method Details
-
create
Description copied from class:TestStringListGeneratorCreates a new collection containing the given elements; implement this method instead ofTestStringListGenerator.create(Object...).- Specified by:
createin classTestStringListGenerator
-