Interface CollectionInstantiator<C extends Collection<?>,​R extends Collection<?> & RecordingContainer<? extends C>>

  • Type Parameters:
    C - The collection type
    R - The recording container type

    public interface CollectionInstantiator<C extends Collection<?>,​R extends Collection<?> & RecordingContainer<? extends C>>
    An instantiator for normal, recording and JPA collections for an entity view attribute.
    Since:
    1.5.0
    Author:
    Christian Beikov
    • Method Detail

      • createCollection

        C createCollection​(int size)
        Creates a plain collection.
        Parameters:
        size - The size estimate
        Returns:
        the collection
      • createRecordingCollection

        R createRecordingCollection​(int size)
        Creates a recording collection.
        Parameters:
        size - The size estimate
        Returns:
        the recording collection