public class PrimitiveOrWrapperType extends TypeSchema
| Modifier and Type | Field and Description |
|---|---|
boolean |
isWrapper
represent if the type is wrapper
for instance, isWrapper for Integer is true and for int is false
|
depth, spec| Constructor and Description |
|---|
PrimitiveOrWrapperType(String type,
String fullTypeName,
boolean isWrapper,
Class<?> clazz,
JavaDtoSpec spec) |
PrimitiveOrWrapperType(String type,
String fullTypeName,
Class<?> clazz,
JavaDtoSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
PrimitiveOrWrapperType |
copy() |
String |
getTypeNameForInstanceInJavaOrKotlin(boolean isJava) |
boolean |
isFloatingPointNumber() |
boolean |
isIntegralNumber() |
boolean |
isNumber() |
static boolean |
isPrimitiveOrTypes(Class<?> clazz) |
static boolean |
isPrimitiveOrTypes(String type) |
getClazz, getDto, getFullTypeName, getFullTypeNameWithGenericType, getSimpleTypeName, sameType, setOriginalTypepublic final boolean isWrapper
public PrimitiveOrWrapperType(String type, String fullTypeName, boolean isWrapper, Class<?> clazz, JavaDtoSpec spec)
public PrimitiveOrWrapperType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec)
public static boolean isPrimitiveOrTypes(String type)
public static boolean isPrimitiveOrTypes(Class<?> clazz)
public PrimitiveOrWrapperType copy()
copy in class TypeSchemapublic boolean isNumber()
public boolean isFloatingPointNumber()
public boolean isIntegralNumber()
public String getTypeNameForInstanceInJavaOrKotlin(boolean isJava)
getTypeNameForInstanceInJavaOrKotlin in class TypeSchemaCopyright © 2016–2025. All rights reserved.