Class SetGenerators.ImmutableSetWithBadHashesGenerator
- java.lang.Object
-
- com.google.common.collect.testing.TestCollidingSetGenerator
-
- com.google.common.collect.testing.google.SetGenerators.ImmutableSetWithBadHashesGenerator
-
- All Implemented Interfaces:
TestCollectionGenerator<java.lang.Object>,TestContainerGenerator<java.util.Collection<java.lang.Object>,java.lang.Object>,TestSetGenerator<java.lang.Object>
- Enclosing class:
- SetGenerators
public static class SetGenerators.ImmutableSetWithBadHashesGenerator extends TestCollidingSetGenerator implements TestCollectionGenerator<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description ImmutableSetWithBadHashesGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.Object>create(java.lang.Object... elements)Creates a new container containing the given elements.-
Methods inherited from class com.google.common.collect.testing.TestCollidingSetGenerator
createArray, order, samples
-
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.TestContainerGenerator
createArray, order, samples
-
-
-
-
Method Detail
-
create
public java.util.Set<java.lang.Object> create(java.lang.Object... elements)
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<java.util.Collection<java.lang.Object>,java.lang.Object>- Specified by:
createin interfaceTestSetGenerator<java.lang.Object>
-
-