public class BasicTypeHelperImpl extends Object
Constructor and Description |
---|
BasicTypeHelperImpl() |
Modifier and Type | Method and Description |
---|---|
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 |
getMapEntryType()
Returns the type representation of class Map.Entry.
|
Object |
getObjectType()
Returns the Object type representation.
|
Object |
getShortClassType()
Returns the Short class representation.
|
Object |
getShortType()
Returns the short type representation.
|
Object |
getSQLDateType()
Returns the Date type representation.
|
Object |
getStringType()
Returns the String type representation.
|
Object |
getTimestampType()
Returns the timestamp type representation.
|
Object |
getTimeType()
Returns the Time type representation.
|
String |
getTypeName(Object type)
Returns the name of the specified type.
|
boolean |
isAssignableFrom(Object left,
Object right)
convenience method for java's isAssignableFrom that allows auto-boxing, taking java class or a descriptor as arguments.
|
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 |
isIntegerType(Object type)
Returns true if type is the int primitive type or the Integer 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)
Returns true if the class is any numeric type.
|
boolean |
isOrderableType(Object type)
Returns true if the specified type denotes an orderable type
|
boolean |
isShortType(Object type)
Returns true if type is the short primitive type or the Short wrapper class
|
boolean |
isStrictlyAssignableFrom(Object left,
Object right)
convenience method for java's isAssignableFrom that allows auto-boxing but follows more closely Java's
Class.isAssignableFrom method results, and returns true if either arguments is null.
|
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 getSQLDateType()
public Object getTimeType()
public Object getTimestampType()
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 getMapEntryType()
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 isIntegerType(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 boolean isAssignableFrom(Object left, Object right)
public boolean isStrictlyAssignableFrom(Object left, Object right)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference