Class TestCollidingSetGenerator
java.lang.Object
com.google.common.collect.testing.TestCollidingSetGenerator
- All Implemented Interfaces:
TestCollectionGenerator<Object>
,TestContainerGenerator<Collection<Object>, Object>
,TestSetGenerator<Object>
- Direct Known Subclasses:
SetGenerators.ImmutableSetWithBadHashesGenerator
@GwtCompatible
@NullMarked
public abstract class TestCollidingSetGenerator
extends Object
implements TestSetGenerator<Object>
A generator using sample elements whose hash codes all collide badly.
- Author:
- Kevin Bourrillion
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.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.TestSetGenerator
create
-
Constructor Details
-
TestCollidingSetGenerator
public TestCollidingSetGenerator()
-
-
Method Details
-
samples
Description copied from interface:TestContainerGenerator
Returns the sample elements that this generate populates its container with.- Specified by:
samples
in interfaceTestContainerGenerator<Collection<Object>, Object>
-
createArray
Description copied from interface:TestContainerGenerator
Helper method to create an array of the appropriate type used by this generator. The returned array will contain only nulls.- Specified by:
createArray
in interfaceTestContainerGenerator<Collection<Object>, Object>
-
order
Returns the original element list, unchanged.- Specified by:
order
in interfaceTestContainerGenerator<Collection<Object>, Object>
-