Package com.blazebit.query.spi
Interface CollectionDataFormat
- All Superinterfaces:
DataFormat
An object that describes the data format of a collection type.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the format of the collection element.getType()
Returns the Java type for this format.static CollectionDataFormat
of
(Type type, DataFormat elementFormat) Returns a new collection 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
-
getElementFormat
DataFormat getElementFormat()Returns the format of the collection element.- Returns:
- the format of the collection element
-
of
Returns a new collection data format.- Parameters:
type
- The collection typeelementFormat
- The element format- Returns:
- the collection data format
-