Interface TestMultisetGenerator<E extends @Nullable Object>
- All Superinterfaces:
TestCollectionGenerator<E>, TestContainerGenerator<Collection<E>, E>
- All Known Implementing Classes:
TestEnumMultisetGenerator, TestStringMultisetGenerator
@GwtCompatible
@NullMarked
public interface TestMultisetGenerator<E extends @Nullable Object>
extends TestCollectionGenerator<E>
Creates multisets, containing sample elements, to be tested.
- Author:
- Jared Levy
-
Method Summary
Methods inherited from interface TestContainerGenerator
createArray, order, samplesModifier and TypeMethodDescriptionE[]createArray(int length) Helper method to create an array of the appropriate type used by this generator.Returns the iteration ordering of elements, given the order in which they were added to the container.samples()Returns the sample elements that this generate populates its container with.
-
Method Details
-
create
Description copied from interface:TestContainerGeneratorCreates 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:
createin interfaceTestContainerGenerator<Collection<E extends @Nullable Object>, E extends @Nullable Object>
-