Package io.sundr.model.utils
Class Optionals
- java.lang.Object
-
- io.sundr.model.utils.Optionals
-
public class Optionals extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static io.sundr.model.TypeParamDefEstatic Function<io.sundr.model.TypeRef,Boolean>IS_OPTIONALstatic Function<io.sundr.model.TypeRef,Boolean>IS_OPTIONAL_DOUBLEstatic Function<io.sundr.model.TypeRef,Boolean>IS_OPTIONAL_INTstatic Function<io.sundr.model.TypeRef,Boolean>IS_OPTIONAL_LONGstatic io.sundr.model.TypeDefOPTIONALstatic io.sundr.model.TypeDefOPTIONAL_DOUBLEstatic io.sundr.model.TypeDefOPTIONAL_INTstatic io.sundr.model.TypeDefOPTIONAL_LONG
-
Constructor Summary
Constructors Constructor Description Optionals()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisOptional(io.sundr.model.TypeRef type)Checks if aTypeRefis aOptional.static booleanisOptionalDouble(io.sundr.model.TypeRef type)Checks if aTypeRefis aOptionalDouble.static booleanisOptionalInt(io.sundr.model.TypeRef type)Checks if aTypeRefis aOptionalInt.static booleanisOptionalLong(io.sundr.model.TypeRef type)Checks if aTypeRefis aOptionalLong.
-
-
-
Field Detail
-
E
public static io.sundr.model.TypeParamDef E
-
OPTIONAL
public static final io.sundr.model.TypeDef OPTIONAL
-
OPTIONAL_INT
public static final io.sundr.model.TypeDef OPTIONAL_INT
-
OPTIONAL_DOUBLE
public static final io.sundr.model.TypeDef OPTIONAL_DOUBLE
-
OPTIONAL_LONG
public static final io.sundr.model.TypeDef OPTIONAL_LONG
-
-
Method Detail
-
isOptional
public static boolean isOptional(io.sundr.model.TypeRef type)
Checks if aTypeRefis aOptional.- Parameters:
type- The type to check.- Returns:
- True if its a
Optional.
-
isOptionalInt
public static boolean isOptionalInt(io.sundr.model.TypeRef type)
Checks if aTypeRefis aOptionalInt.- Parameters:
type- The type to check.- Returns:
- True if its a
OptionalInt.
-
isOptionalDouble
public static boolean isOptionalDouble(io.sundr.model.TypeRef type)
Checks if aTypeRefis aOptionalDouble.- Parameters:
type- The type to check.- Returns:
- True if its a
OptionalDouble.
-
isOptionalLong
public static boolean isOptionalLong(io.sundr.model.TypeRef type)
Checks if aTypeRefis aOptionalLong.- Parameters:
type- The type to check.- Returns:
- True if its a
OptionalLong.
-
-