public class BasicTypeHelperImpl
extends java.lang.Object
Constructor and Description |
---|
BasicTypeHelperImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
extendedBinaryNumericPromotion(java.lang.Object left,
java.lang.Object right)
Implements binary numeric promotion as defined in JLS extended by
wrapper classes, BigDecimal and BigInteger.
|
java.lang.Object |
getBigDecimalType()
Returns the BigDecimal type representation.
|
java.lang.Object |
getBigIntegerType()
Returns the BigInteger type representation.
|
java.lang.Object |
getBooleanClassType()
Returns the Boolean class representation.
|
java.lang.Object |
getBooleanType()
Returns the boolean type representation.
|
java.lang.Object |
getByteClassType()
Returns the Byte class representation.
|
java.lang.Object |
getByteType()
Returns the byte type representation.
|
java.lang.Object |
getCharacterClassType()
Returns the Character class representation.
|
java.lang.Object |
getCharType()
Returns the char type representation.
|
java.lang.Object |
getDateType()
Returns the java.util.Date type representation.
|
java.lang.Object |
getDoubleClassType()
Returns the type representation of class Double.
|
java.lang.Object |
getDoubleType()
Returns the double type representation.
|
java.lang.Object |
getFloatClassType()
Returns the type representation of class Float.
|
java.lang.Object |
getFloatType()
Returns the float type representation.
|
static BasicTypeHelperImpl |
getInstance()
Gets instance of this class
|
java.lang.Object |
getIntegerClassType()
Returns the Inter class representation.
|
java.lang.Object |
getIntType()
Returns the int type representation.
|
java.lang.Class |
getJavaClass(java.lang.Object type)
Returns the class object of the specified type.
|
java.lang.Object |
getLongClassType()
Returns the type representation of class Long.
|
java.lang.Object |
getLongType()
Returns the long type representation.
|
java.lang.Object |
getMapEntryType()
Returns the type representation of class Map.Entry.
|
java.lang.Object |
getObjectType()
Returns the Object type representation.
|
java.lang.Object |
getShortClassType()
Returns the Short class representation.
|
java.lang.Object |
getShortType()
Returns the short type representation.
|
java.lang.Object |
getSQLDateType()
Returns the Date type representation.
|
java.lang.Object |
getStringType()
Returns the String type representation.
|
java.lang.Object |
getTimestampType()
Returns the timestamp type representation.
|
java.lang.Object |
getTimeType()
Returns the Time type representation.
|
java.lang.String |
getTypeName(java.lang.Object type)
Returns the name of the specified type.
|
boolean |
isAssignableFrom(java.lang.Object left,
java.lang.Object right)
convenience method for java's isAssignableFrom that allows auto-boxing, taking java class or a descriptor as arguments.
|
boolean |
isBigDecimalType(java.lang.Object type) |
boolean |
isBigIntegerType(java.lang.Object type) |
boolean |
isBooleanType(java.lang.Object type)
Returns true if type is the boolean primitive type or the Boolean wrapper class
|
boolean |
isByteType(java.lang.Object type)
Returns true if type is the byte primitive type or the Byte wrapper class
|
boolean |
isCharacterType(java.lang.Object type)
Returns true if type is the char primitive type or the Character wrapper class
|
boolean |
isDateClass(java.lang.Object type) |
boolean |
isDoubleType(java.lang.Object type)
Returns true if type is the double primitive type or the Double wrapper class
|
boolean |
isEnumType(java.lang.Object type) |
boolean |
isFloatingPointType(java.lang.Object type)
Returns true if the specified type represents an
floating point type or a wrapper class of an floating point type.
|
boolean |
isFloatType(java.lang.Object type)
Returns true if type is the float primitive type or the Float wrapper class
|
boolean |
isIntegerType(java.lang.Object type)
Returns true if type is the int primitive type or the Integer wrapper class
|
boolean |
isIntegralType(java.lang.Object type)
Returns true if the specified type represents an
integral type or a wrapper class of an integral type.
|
boolean |
isIntType(java.lang.Object type)
Returns true if type is the int primitive type or the Integer wrapper class
|
boolean |
isLongType(java.lang.Object type)
Returns true if type is the long primitive type or the Long wrapper class
|
boolean |
isNumericType(java.lang.Object type)
Returns true if the class is any numeric type.
|
boolean |
isOrderableType(java.lang.Object type)
Returns true if the specified type denotes an orderable type
|
boolean |
isShortType(java.lang.Object type)
Returns true if type is the short primitive type or the Short wrapper class
|
boolean |
isStrictlyAssignableFrom(java.lang.Object left,
java.lang.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(java.lang.Object type)
Returns true if the specified type represents java.lang.String.
|
boolean |
isWrapperClass(java.lang.Object type)
Returns true if the specified type is a wrapper class.
|
public static BasicTypeHelperImpl getInstance()
public java.lang.String getTypeName(java.lang.Object type)
public java.lang.Class getJavaClass(java.lang.Object type)
public java.lang.Object getObjectType()
public java.lang.Object getBooleanType()
public java.lang.Object getBooleanClassType()
public java.lang.Object getCharType()
public java.lang.Object getSQLDateType()
public java.lang.Object getTimeType()
public java.lang.Object getTimestampType()
public java.lang.Object getCharacterClassType()
public java.lang.Object getByteType()
public java.lang.Object getByteClassType()
public java.lang.Object getShortType()
public java.lang.Object getShortClassType()
public java.lang.Object getIntType()
public java.lang.Object getIntegerClassType()
public java.lang.Object getLongType()
public java.lang.Object getLongClassType()
public java.lang.Object getMapEntryType()
public java.lang.Object getFloatType()
public java.lang.Object getFloatClassType()
public java.lang.Object getDoubleType()
public java.lang.Object getDoubleClassType()
public java.lang.Object getStringType()
public java.lang.Object getBigIntegerType()
public java.lang.Object getBigDecimalType()
public java.lang.Object getDateType()
public boolean isEnumType(java.lang.Object type)
public boolean isNumericType(java.lang.Object type)
public boolean isIntegralType(java.lang.Object type)
public boolean isFloatingPointType(java.lang.Object type)
public boolean isWrapperClass(java.lang.Object type)
public boolean isBooleanType(java.lang.Object type)
public boolean isCharacterType(java.lang.Object type)
public boolean isByteType(java.lang.Object type)
public boolean isShortType(java.lang.Object type)
public boolean isIntType(java.lang.Object type)
public boolean isIntegerType(java.lang.Object type)
public boolean isLongType(java.lang.Object type)
public boolean isFloatType(java.lang.Object type)
public boolean isDoubleType(java.lang.Object type)
public boolean isStringType(java.lang.Object type)
public boolean isDateClass(java.lang.Object type)
public boolean isBigIntegerType(java.lang.Object type)
public boolean isBigDecimalType(java.lang.Object type)
public boolean isOrderableType(java.lang.Object type)
public boolean isAssignableFrom(java.lang.Object left, java.lang.Object right)
public boolean isStrictlyAssignableFrom(java.lang.Object left, java.lang.Object right)
public java.lang.Object extendedBinaryNumericPromotion(java.lang.Object left, java.lang.Object right)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference