@GwtCompatible public abstract class TestCollidingSetGenerator extends Object implements TestSetGenerator<Object>
A generator using sample elements whose hash codes all collide badly.
| Constructor and Description |
|---|
TestCollidingSetGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
createArray(int length)
Helper method to create an array of the appropriate type used by this generator.
|
List<Object> |
order(List<Object> insertionOrder)
Returns the original element list, unchanged.
|
SampleElements<Object> |
samples()
Returns the sample elements that this generate populates its container with.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic SampleElements<Object> samples()
TestContainerGeneratorReturns the sample elements that this generate populates its container with.
samples in interface TestContainerGenerator<Collection<Object>,Object>public Object[] createArray(int length)
TestContainerGeneratorHelper method to create an array of the appropriate type used by this generator. The returned array will contain only nulls.
createArray in interface TestContainerGenerator<Collection<Object>,Object>public List<Object> order(List<Object> insertionOrder)
Returns the original element list, unchanged.
order in interface TestContainerGenerator<Collection<Object>,Object>