Package dk.mada.jaxrs.model.types
Interface TypeEnum
- All Superinterfaces:
Type
Enumeration type.
It captures the value-type of the enumeration and its values.
-
Method Summary
Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, neededImports, typeName, wrapperTypeName
-
Method Details
-
of
Creates a new enumeration type instance.- Parameters:
typeName
- the type namevalueType
- the enumeration value-typevalues
- the enumeration values- Returns:
- a type wrapping the enumeration data
-
innerType
Type innerType()Returns the inner type of the enumeration.- Returns:
- the inner type of the enumeration
-
values
Returns the enumeration values.- Returns:
- the enumeration values
-
isEnum
default boolean isEnum()Description copied from interface:Type
Returns true if this type represents an enumeration.
-