Interface TestSetGenerator<E extends @Nullable Object>

All Superinterfaces:
TestCollectionGenerator<E>, TestContainerGenerator<Collection<E>, E>
All Known Subinterfaces:
TestSortedSetGenerator<E>
All Known Implementing Classes:
DerivedCollectionGenerators.MapEntrySetGenerator, DerivedCollectionGenerators.MapKeySetGenerator, DerivedCollectionGenerators.MapSortedKeySetGenerator, DerivedCollectionGenerators.SortedSetSubsetTestSetGenerator, DerivedGoogleCollectionGenerators.BiMapValueSetGenerator, NavigableSetTestSuiteBuilder.NavigableSetSubsetTestSetGenerator, ReserializingTestSetGenerator, SetGenerators.ContiguousSetDescendingGenerator, SetGenerators.ContiguousSetGenerator, SetGenerators.ContiguousSetHeadsetGenerator, SetGenerators.ContiguousSetSubsetGenerator, SetGenerators.ContiguousSetTailsetGenerator, SetGenerators.DegeneratedImmutableSetGenerator, SetGenerators.ImmutableSetCopyOfGenerator, SetGenerators.ImmutableSetSizedBuilderGenerator, SetGenerators.ImmutableSetTooBigBuilderGenerator, SetGenerators.ImmutableSetTooSmallBuilderGenerator, SetGenerators.ImmutableSetUnsizedBuilderGenerator, 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

@GwtCompatible @NullMarked public interface TestSetGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E>
Creates sets, containing sample elements, to be tested.
Author:
Kevin Bourrillion
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Object... elements)
    Creates a new container containing the given elements.

    Methods inherited from interface TestContainerGenerator

    createArray, order, samples
    Modifier and Type
    Method
    Description
    E[]
    createArray(int length)
    Helper method to create an array of the appropriate type used by this generator.
    order(List<E> insertionOrder)
    Returns the iteration ordering of elements, given the order in which they were added to the container.
    Returns the sample elements that this generate populates its container with.
  • Method Details

    • 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 extends @Nullable Object>, E extends @Nullable Object>