public class BasicTypeHelperImpl extends Object
Constructor and Description |
---|
BasicTypeHelperImpl() |
Modifier and Type | Method and Description |
---|---|
protected Object |
binaryNumericPromotion(Object left,
Object right)
Implements binary numeric promotion as defined in JLS.
|
Object |
extendedBinaryNumericPromotion(Object left,
Object right)
Implements binary numeric promotion as defined in JLS extended by
wrapper classes, BigDecimal and BigInteger.
|
Object |
getBigDecimalType()
Returns the BigDecimal type representation.
|
Object |
getBigIntegerType()
Returns the BigInteger type representation.
|
Object |
getBooleanClassType()
Returns the Boolean class representation.
|
Object |
getBooleanType()
Returns the boolean type representation.
|
Object |
getByteClassType()
Returns the Byte class representation.
|
Object |
getByteType()
Returns the byte type representation.
|
Object |
getCharacterClassType()
Returns the Character class representation.
|
Object |
getCharType()
Returns the char type representation.
|
Object |
getDateType()
Returns the java.util.Date type representation.
|
Object |
getDoubleClassType()
Returns the type representation of class Double.
|
Object |
getDoubleType()
Returns the double type representation.
|
Object |
getFloatClassType()
Returns the type representation of class Float.
|
Object |
getFloatType()
Returns the float type representation.
|
static BasicTypeHelperImpl |
getInstance()
Gets instance of this class
|
Object |
getIntegerClassType()
Returns the Inter class representation.
|
Object |
getIntType()
Returns the int type representation.
|
Class |
getJavaClass(Object type)
Returns the class object of the specified type.
|
Object |
getLongClassType()
Returns the type representation of class Long.
|
Object |
getLongType()
Returns the long type representation.
|
Object |
getObjectType()
Returns the Object type representation.
|
protected Object |
getPrimitiveType(Object wrapper)
Returns the primitive for the specified wrapper class.
|
Object |
getShortClassType()
Returns the Short class representation.
|
Object |
getShortType()
Returns the short type representation.
|
Object |
getStringType()
Returns the String type representation.
|
String |
getTypeName(Object type)
Returns the name of the specified type.
|
protected Object |
getWrapperClass(Object primitive)
Returns the wrapper class for the specified primitive.
|
boolean |
isAssignableFrom(Object left,
Object right) |
boolean |
isBigDecimalType(Object type) |
boolean |
isBigIntegerType(Object type) |
boolean |
isBooleanType(Object type)
Returns true if type is the boolean primitive type or the Boolean wrapper class
|
boolean |
isByteType(Object type)
Returns true if type is the byte primitive type or the Byte wrapper class
|
boolean |
isCharacterType(Object type)
Returns true if type is the char primitive type or the Character wrapper class
|
boolean |
isDateClass(Object type) |
boolean |
isDoubleType(Object type)
Returns true if type is the double primitive type or the Double wrapper class
|
boolean |
isEnumType(Object type) |
boolean |
isFloatingPointType(Object type)
Returns true if the specified type represents an
floating point type or a wrapper class of an floating point type.
|
boolean |
isFloatType(Object type)
Returns true if type is the float primitive type or the Float wrapper class
|
boolean |
isIntegralType(Object type)
Returns true if the specified type represents an
integral type or a wrapper class of an integral type.
|
boolean |
isIntType(Object type)
Returns true if type is the int primitive type or the Integer wrapper class
|
boolean |
isLongType(Object type)
Returns true if type is the long primitive type or the Long wrapper class
|
boolean |
isNumericType(Object type) |
boolean |
isOrderableType(Object type)
Returns true if the specified type denotes an orable type
|
boolean |
isShortType(Object type)
Returns true if type is the short primitive type or the Short wrapper class
|
boolean |
isStringType(Object type)
Returns true if the specified type represents java.lang.String.
|
boolean |
isWrapperClass(Object type)
Returns true if the specified type is a wrapper class.
|
public static BasicTypeHelperImpl getInstance()
public Object getObjectType()
public Object getBooleanType()
public Object getBooleanClassType()
public Object getCharType()
public Object getCharacterClassType()
public Object getByteType()
public Object getByteClassType()
public Object getShortType()
public Object getShortClassType()
public Object getIntType()
public Object getIntegerClassType()
public Object getLongType()
public Object getLongClassType()
public Object getFloatType()
public Object getFloatClassType()
public Object getDoubleType()
public Object getDoubleClassType()
public Object getStringType()
public Object getBigIntegerType()
public Object getBigDecimalType()
public Object getDateType()
public boolean isEnumType(Object type)
public boolean isNumericType(Object type)
public boolean isIntegralType(Object type)
public boolean isFloatingPointType(Object type)
public boolean isWrapperClass(Object type)
public boolean isBooleanType(Object type)
public boolean isCharacterType(Object type)
public boolean isByteType(Object type)
public boolean isShortType(Object type)
public boolean isIntType(Object type)
public boolean isLongType(Object type)
public boolean isFloatType(Object type)
public boolean isDoubleType(Object type)
public boolean isStringType(Object type)
public boolean isDateClass(Object type)
public boolean isBigIntegerType(Object type)
public boolean isBigDecimalType(Object type)
public boolean isOrderableType(Object type)
public Object extendedBinaryNumericPromotion(Object left, Object right)
protected Object getPrimitiveType(Object wrapper)
protected Object getWrapperClass(Object primitive)
Copyright © 2022. All rights reserved.