Package com.blazebit.persistence.view
Interface MapInstantiator<C extends Map<?,?>,R extends Map<?,?> & RecordingContainer<? extends C>>
- Type Parameters:
C- The map typeR- The recording container type
public interface MapInstantiator<C extends Map<?,?>,R extends Map<?,?> & RecordingContainer<? extends C>>
An instantiator for normal, recording and JPA maps for an entity view attribute.
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptioncreateMap(int size) Creates a plain map.createRecordingMap(int size) Creates a recording map.
-
Method Details
-
createMap
Creates a plain map.- Parameters:
size- The size estimate- Returns:
- the map
-
createRecordingMap
Creates a recording map.- Parameters:
size- The size estimate- Returns:
- the recording map
-