Class SetGenerators.ImmutableSetWithBadHashesGenerator
java.lang.Object
com.google.common.collect.testing.TestCollidingSetGenerator
com.google.common.collect.testing.google.SetGenerators.ImmutableSetWithBadHashesGenerator
- All Implemented Interfaces:
TestCollectionGenerator<Object>, TestContainerGenerator<Collection<Object>, Object>, TestSetGenerator<Object>
- Enclosing class:
SetGenerators
public static class SetGenerators.ImmutableSetWithBadHashesGenerator
extends TestCollidingSetGenerator
- Author:
- Kevin Bourrillion, Jared Levy, Hayward Chan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class TestCollidingSetGenerator
createArray, order, samplesModifier and TypeMethodDescriptionObject[]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
-
ImmutableSetWithBadHashesGenerator
public ImmutableSetWithBadHashesGenerator()
-
-
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.
-