Record Class TypeDef.Primitive
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.TypeDef.Primitive
- Record Components:
clazz- The primitive clazz
- All Implemented Interfaces:
TypeDef
- Enclosing interface:
TypeDef
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeDef
TypeDef.Annotated, TypeDef.AnnotatedTypeDef, TypeDef.Array, TypeDef.Primitive, TypeDef.TypeVariable, TypeDef.Wildcard -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final ExpressionDef.Constantstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final TypeDef.Primitivestatic final ClassTypeDefstatic final ExpressionDef.Constant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> clazz()Returns the value of theclazzrecord component.A primitive constant expression.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisArray()booleanbooleanisNumber()booleanbooleanname()final StringtoString()Returns a string representation of this record class.static TypeDefunboxIfPossible(TypeDef typeDef) Unbox if possible.Methods inherited from interface TypeDef
annotated, annotated, array, array, isNullable, resolveTypeVariables
-
Field Details
-
INT
-
BOOLEAN
-
LONG
-
CHAR
-
BYTE
-
SHORT
-
DOUBLE
-
FLOAT
-
TRUE
-
FALSE
-
BOOLEAN_WRAPPER
-
INT_WRAPPER
-
LONG_WRAPPER
-
DOUBLE_WRAPPER
-
FLOAT_WRAPPER
-
SHORT_WRAPPER
-
BYTE_WRAPPER
-
CHAR_WRAPPER
-
-
Constructor Details
-
Primitive
-
-
Method Details
-
unboxIfPossible
-
name
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitivein interfaceTypeDef- Returns:
- Is primitive type
-
isArray
-
makeNullable
- Specified by:
makeNullablein interfaceTypeDef- Returns:
- A new nullable type
-
wrapperType
-
constant
A primitive constant expression.- Parameters:
value- The constant value- Returns:
- The new instance
- Since:
- 1.3
-
isWholeNumber
public boolean isWholeNumber()- Returns:
- Is a whole number
- Since:
- 1.5
-
isFloatNumber
public boolean isFloatNumber()- Returns:
- Is a float number
- Since:
- 1.5
-
isNumber
public boolean isNumber()- Returns:
- Is a number
- Since:
- 1.5
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
clazz
-