Package dk.mada.jaxrs.model.types
Interface TypeContainer
- All Superinterfaces:
Type
- All Known Implementing Classes:
ImmutableTypeArray,ImmutableTypeMap,ImmutableTypeSet
Type representing a container.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the java implementation used to instantiate this container.Returns the java implementation declaration with generic types.Returns the type of data in the container.default booleanReturns true if this type represents a container, otherwise false.Returns the set of imports needed to use this type in a DTO.Returns the type names instance.Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, typeName, wrapperTypeName
-
Method Details
-
innerType
Type innerType()Returns the type of data in the container.- Returns:
- the type of data in the container
-
containerImplementation
String containerImplementation()Returns the java implementation used to instantiate this container.- Returns:
- the java implementation used to instantiate this container
-
containerImplementationDeclaration
String containerImplementationDeclaration()Returns the java implementation declaration with generic types.- Returns:
- the java implementation declaration with generic types
-
typeNames
TypeNames typeNames()Returns the type names instance.- Returns:
- the type names instance
-
isContainer
default boolean isContainer()Description copied from interface:TypeReturns true if this type represents a container, otherwise false.- Specified by:
isContainerin interfaceType- Returns:
- true if this type represents a container, otherwise false
-
neededImports
Description copied from interface:TypeReturns the set of imports needed to use this type in a DTO.- Specified by:
neededImportsin interfaceType- Returns:
- the set of imports needed to use this type in a DTO
-