com.google.common.collect.testing
Interface TestSetGenerator<E>

All Superinterfaces:
TestCollectionGenerator<E>, TestContainerGenerator<Collection<E>,E>
All Known Implementing Classes:
BiMapTestSuiteBuilder.BiMapValueSetGenerator, MapTestSuiteBuilder.MapEntrySetGenerator, MapTestSuiteBuilder.MapKeySetGenerator, ReserializingTestSetGenerator, SetGenerators.ContiguousSetDescendingGenerator, SetGenerators.ContiguousSetGenerator, SetGenerators.ContiguousSetHeadsetGenerator, SetGenerators.ContiguousSetSubsetGenerator, SetGenerators.ContiguousSetTailsetGenerator, SetGenerators.DegeneratedImmutableSetGenerator, SetGenerators.ImmutableSetCopyOfGenerator, SetGenerators.ImmutableSetWithBadHashesGenerator, SetGenerators.ImmutableSortedSetCopyOfGenerator, SetGenerators.ImmutableSortedSetDescendingGenerator, SetGenerators.ImmutableSortedSetExplicitComparator, SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator, SetGenerators.ImmutableSortedSetHeadsetGenerator, SetGenerators.ImmutableSortedSetReversedOrderGenerator, SetGenerators.ImmutableSortedSetSubsetGenerator, SetGenerators.ImmutableSortedSetTailsetGenerator, SetGenerators.ImmutableSortedSetUnhashableGenerator, SetGenerators.TestUnhashableSetGenerator, TestCollidingSetGenerator, TestEnumSetGenerator, TestIntegerSetGenerator, TestIntegerSortedSetGenerator, TestMapEntrySetGenerator, TestStringSetGenerator, TestStringSortedSetGenerator

public interface TestSetGenerator<E>
extends TestCollectionGenerator<E>

Creates sets, containing sample elements, to be tested.

This class is GWT compatible.

Author:
Kevin Bourrillion

Method Summary
 Set<E> create(Object... elements)
          Creates a new container containing the given elements.
 
Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, order, samples
 

Method Detail

create

Set<E> create(Object... elements)
Description copied from interface: TestContainerGenerator
Creates 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:
create in interface TestContainerGenerator<Collection<E>,E>


Copyright © 2010-2012. All Rights Reserved.