public interface ITypeHelper
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
bigDecimal()
Retrieves the;@link IType} for;@link BigDecimal}.
|
java.lang.Object |
bigInteger()
Retrieves the;@link IType} for;@link BigInteger}.
|
java.lang.Object |
booleanType()
Retrieves the;@link IType} for;@link Boolean}.
|
java.lang.Object |
byteType()
Retrieves the;@link IType} for;@link Byte}.
|
java.lang.Object |
characterType()
Retrieves the;@link IType} for;@link Character}.
|
java.lang.Object |
collectionType()
Retrieves the;@link IType} for;@link Collection}.
|
java.lang.Object |
convertPrimitive(java.lang.Object type)
Converts the given;@link IType}, if it's representing a primitive type, into the class of the
same type.
|
java.lang.Object |
dateType()
Retrieves the;@link IType} for;@link Date}.
|
java.lang.Object |
doubleType()
Retrieves the;@link IType} for;@link Double}.
|
java.lang.Object |
enumType()
Retrieves the;@link IType} for;@link Enum}.
|
java.lang.Object |
floatType()
Retrieves the;@link IType} for;@link Float}.
|
java.lang.Object |
getType(java.lang.Class<?> type)
Returns the;@link IType} of the given Java type.
|
java.lang.Object |
getType(java.lang.String typeName)
Retrieves the external class for the given fully qualified class name.
|
java.lang.Object |
integerType()
Retrieves the;@link IType} for;@link Integer}.
|
boolean |
isBooleanType(java.lang.Object type)
Determines whether the given;@link IType} is a;@link Boolean}.
|
boolean |
isCollectionType(java.lang.Object type)
Determines whether the given;@link IType} is an instance of;@link Collection}.
|
boolean |
isDateType(java.lang.Object type)
Determines whether the given;@link IType} is a;@link Date},;@link Timestamp} or
;@link Calendar}.
|
boolean |
isEnumType(java.lang.Object type)
Determines whether the given;@link IType} is an instance of;@link Enum}.
|
boolean |
isFloatingType(java.lang.Object type)
Determines whether the given;@link IType} is an instance of a floating type, which is either
Float, Double, float or double. |
boolean |
isIntegralType(java.lang.Object type)
Determines whether the given;@link IType} is an instance of a floating type, which is either
Integer, Long, int or float. |
boolean |
isMapType(java.lang.Object type)
Determines whether the given;@link IType} is an instance of;@link Map}.
|
boolean |
isNumericType(java.lang.Object type)
Determines whether the given;@link IType} is an instance of;@link Numeric}.
|
boolean |
isObjectType(java.lang.Object type)
Determines whether the given;@link IType} is the external form of;@link Object}.
|
boolean |
isPrimitiveType(java.lang.Object type)
Determines whether the given;@link IType} represents a primitive type.
|
boolean |
isStringType(java.lang.Object type)
Determines whether the given;@link IType} represents the
String class. |
java.lang.Object |
longType()
Retrieves the;@link IType} for;@link Long}.
|
java.lang.Object |
longType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive long, into the
Long type. |
java.lang.Object |
mapType()
Retrieves the;@link IType} for;@link Map}.
|
java.lang.Object |
numberType()
Retrieves the;@link IType} for;@link Number}.
|
java.lang.Object |
objectType()
Retrieves the;@link IType} for;@link Object}.
|
java.lang.Object |
objectTypeDeclaration()
Returns the;@link Object } for the;@link IType} representing the
Object
class. |
java.lang.Object |
primitiveBoolean()
Retrieves the;@link IType} for the primitive boolean.
|
java.lang.Object |
primitiveByte()
Retrieves the;@link IType} for the primitive byte.
|
java.lang.Object |
primitiveChar()
Retrieves the;@link IType} for the primitive char.
|
java.lang.Object |
primitiveDouble()
Retrieves the;@link IType} for the primitive double.
|
java.lang.Object |
primitiveFloat()
Retrieves the;@link IType} for the primitive float.
|
java.lang.Object |
primitiveInteger()
Retrieves the;@link IType} for the primitive int.
|
java.lang.Object |
primitiveLong()
Retrieves the;@link IType} for the primitive long.
|
java.lang.Object |
primitiveShort()
Retrieves the;@link IType} for the primitive short.
|
java.lang.Object |
shortType()
Retrieves the;@link IType} for;@link Short}.
|
java.lang.Object |
stringType()
Retrieves the;@link IType} for;@link String}.
|
java.lang.Object |
timestampType()
Retrieves the;@link IType} for;@link Timestamp}.
|
java.lang.Object |
toBooleanType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive boolean, into the
Boolean
type. |
java.lang.Object |
toByteType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive byte, into the
Byte
type. |
java.lang.Object |
toDoubleType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive double, into the
Double
type. |
java.lang.Object |
toFloatType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive float, into the
Float
type. |
java.lang.Object |
toIntegerType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive int, into the
Integer
type. |
java.lang.Object |
toShortType(java.lang.Object type)
Converts the given;@link IType}, if it's the primitive short, into the
Short
type. |
java.lang.Object |
unknownType()
Retrieves the;@link IType} that represents an unknown type.
|
java.lang.Object |
unknownTypeDeclaration()
Returns the;@link Object } for the;@link IType} representing an unknown type.
|
java.lang.Object bigDecimal()
BigDecimal classjava.lang.Object bigInteger()
BigInteger classjava.lang.Object booleanType()
Boolean classjava.lang.Object byteType()
Byte classjava.lang.Object characterType()
Character classjava.lang.Object collectionType()
Collection classjava.lang.Object convertPrimitive(java.lang.Object type)
type - Type to possibly convert from the primitive into the classjava.lang.Object dateType()
Date classjava.lang.Object doubleType()
Double classjava.lang.Object enumType()
Enum classjava.lang.Object floatType()
Float classjava.lang.Object getType(java.lang.Class<?> type)
type - The Java type for which its external form will be returnedjava.lang.Object getType(java.lang.String typeName)
typeName - The fully qualified class name of the class to retrievejava.lang.Object integerType()
Integer classboolean isBooleanType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is a;@link Boolean}; false
otherwiseboolean isCollectionType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Collection};
false otherwiseboolean isDateType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is a;@link Date},;@link Timestamp} or
;@link Calendar}boolean isEnumType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Enum};
false otherwiseboolean isFloatingType(java.lang.Object type)
Float, Double, float or double.type - The type to check it's assignabilitytrue if the given;@link IType} is a floating type; false
otherwiseboolean isIntegralType(java.lang.Object type)
Integer, Long, int or float.type - The type to check it's assignabilitytrue if the given;@link IType} is a integral type; false
otherwiseboolean isMapType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Map};
false otherwiseboolean isNumericType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Numeric};
false otherwiseboolean isObjectType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} is the external form of;@link Object}boolean isPrimitiveType(java.lang.Object type)
type - The type to check it's assignabilitytrue if the given;@link IType} represents a primitive; false
otherwiseboolean isStringType(java.lang.Object type)
String class.type - The type to check it's assignabilitytrue if the given;@link IType} represents the String class;
false otherwisejava.lang.Object longType()
Long classjava.lang.Object longType(java.lang.Object type)
Long type.type - The;@link IType} to possibly convertLongjava.lang.Object mapType()
Map classjava.lang.Object numberType()
Number classjava.lang.Object objectType()
Object classjava.lang.Object objectTypeDeclaration()
Object
class.Object classjava.lang.Object primitiveBoolean()
java.lang.Object primitiveByte()
java.lang.Object primitiveChar()
java.lang.Object primitiveDouble()
java.lang.Object primitiveFloat()
java.lang.Object primitiveInteger()
java.lang.Object primitiveLong()
java.lang.Object primitiveShort()
java.lang.Object shortType()
Short classjava.lang.Object stringType()
String classjava.lang.Object timestampType()
Timestamp classjava.lang.Object toBooleanType(java.lang.Object type)
Boolean
type.type - The;@link IType} to possibly convertBooleanjava.lang.Object toByteType(java.lang.Object type)
Byte
type.type - The;@link IType} to possibly convertBytejava.lang.Object toDoubleType(java.lang.Object type)
Double
type.type - The;@link IType} to possibly convertDoublejava.lang.Object toFloatType(java.lang.Object type)
Float
type.type - The;@link IType} to possibly convertFloatjava.lang.Object toIntegerType(java.lang.Object type)
Integer
type.type - The;@link IType} to possibly convertIntegerjava.lang.Object toShortType(java.lang.Object type)
Short
type.type - The;@link IType} to possibly convertShortjava.lang.Object unknownType()
java.lang.Object unknownTypeDeclaration()