Package com.blazebit.query.spi
Interface MapDataFormat
- All Superinterfaces:
DataFormat
An object that describes the data format of a map type.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the format of the map element.Returns the format of the map key.getType()
Returns the Java type for this format.static MapDataFormat
of
(Type type, DataFormat keyFormat, DataFormat elementFormat) Returns a new map data format.Methods inherited from interface com.blazebit.query.spi.DataFormat
getFields, isEnum
-
Method Details
-
getType
Type getType()Returns the Java type for this format.- Specified by:
getType
in interfaceDataFormat
- Returns:
- the Java type for this format
-
getKeyFormat
DataFormat getKeyFormat()Returns the format of the map key.- Returns:
- the format of the map key
-
getElementFormat
DataFormat getElementFormat()Returns the format of the map element.- Returns:
- the format of the map element
-
of
Returns a new map data format.- Parameters:
type
- The collection typekeyFormat
- The key formatelementFormat
- The element format- Returns:
- the map data format
-