Interface CollectionInstantiatorImplementor<C extends Collection<?>,​R extends RecordingCollection<? extends C,​?>>

All Superinterfaces:
CollectionInstantiator<C,​R>
All Known Implementing Classes:
AbstractCollectionInstantiator, ListCollectionInstantiator, OrderedCollectionInstantiator, OrderedSetCollectionInstantiator, SortedSetCollectionInstantiator, UnorderedSetCollectionInstantiator

public interface CollectionInstantiatorImplementor<C extends Collection<?>,​R extends RecordingCollection<? extends C,​?>>
extends CollectionInstantiator<C,​R>
Since:
1.2.0
Author:
Christian Beikov
  • Method Details

    • allowsDuplicates

      boolean allowsDuplicates()
      Returns whether the collection type allows duplicates.
      Returns:
      whether the collection type allows duplicates
    • isIndexed

      boolean isIndexed()
      Returns whether the collection type is indexed.
      Returns:
      whether the collection type is indexed
    • requiresPostConstruct

      boolean requiresPostConstruct()
      Returns whether the collection requires a post construct call.
      Returns:
      whether the collection requires a post construct call
    • postConstruct

      void postConstruct​(Collection<?> collection)
      Invokes the post construct action on the collection.
      Parameters:
      collection - The collection
    • createJpaCollection

      Collection<?> createJpaCollection​(int size)
      Creates a collection for the JPA model.
      Parameters:
      size - The size estimate
      Returns:
      the collection