Interface TestMultimapGenerator<K extends @Nullable Object, V extends @Nullable Object, M extends com.google.common.collect.Multimap<K,V> >
- All Superinterfaces:
TestContainerGenerator<M, Map.Entry<K,V>>
- All Known Subinterfaces:
TestListMultimapGenerator<K,V>, TestSetMultimapGenerator<K, V>
- All Known Implementing Classes:
TestStringListMultimapGenerator, TestStringSetMultimapGenerator
@GwtCompatible
@NullMarked
public interface TestMultimapGenerator<K extends @Nullable Object, V extends @Nullable Object, M extends com.google.common.collect.Multimap<K,V>>
extends TestContainerGenerator<M, Map.Entry<K,V>>
Creates multimaps, containing sample elements, to be tested.
- Author:
- Louis Wasserman
-
Method Summary
Modifier and TypeMethodDescriptioncreateCollection(Iterable<? extends V> values) K[]createKeyArray(int length) V[]createValueArray(int length) Methods inherited from interface TestContainerGenerator
create, createArray, order, samplesModifier and TypeMethodDescriptionCreates a new container containing the given elements.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
-
createKeyArray
-
createValueArray
-
sampleKeys
SampleElements<K> sampleKeys() -
sampleValues
SampleElements<V> sampleValues() -
createCollection
-