|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.latencybusters.jms.message.Conversions
public final class Conversions
A helper class returning the conversion types supported by MapMessage and StreamMessage
Field Summary | |
---|---|
static java.lang.Class[] |
TYPES
All types supported by MapMessage and StreamMessage |
Method Summary | |
---|---|
static java.lang.Object |
convert(java.lang.Object value,
java.lang.Class type)
Converts an object from one type to another |
static java.lang.Object |
convertBoolean(java.lang.Boolean value,
java.lang.Class type)
Convert a boolean to the specified type |
static java.lang.Object |
convertByte(java.lang.Byte value,
java.lang.Class type)
Convert a byte to the specified type |
static java.lang.Object |
convertChar(java.lang.Character value,
java.lang.Class type)
Convert a char to the specified type |
static java.lang.Object |
convertDouble(java.lang.Double value,
java.lang.Class type)
Convert a double to the specified type |
static java.lang.Object |
convertFloat(java.lang.Float value,
java.lang.Class type)
Convert a float to the specified type |
static java.lang.Object |
convertInt(java.lang.Integer value,
java.lang.Class type)
Convert an int to the specified type |
static java.lang.Object |
convertLong(java.lang.Long value,
java.lang.Class type)
Convert a long to the specified type |
static java.lang.Object |
convertShort(java.lang.Short value,
java.lang.Class type)
Convert a short to the specified type |
static java.lang.Object |
convertString(java.lang.String value,
java.lang.Class type)
Convert a String to the specified type |
static java.lang.Class[] |
getInvalidConversions(java.lang.Class type)
Returns the list of invalid conversions for a particular type |
static java.lang.Class[] |
getValidConversions(java.lang.Class type)
Returns the list of valid conversions for a particular type |
static boolean |
isValidConversion(java.lang.Object value,
java.lang.Class type)
Returns true if it is valid to convert a value to a particular type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class[] TYPES
Method Detail |
---|
public static java.lang.Class[] getValidConversions(java.lang.Class type)
type
- the type to convert from. For primitives, this must be the
corresponding objectified type
public static java.lang.Class[] getInvalidConversions(java.lang.Class type)
type
- the type to convert from. For primitives, this must be the
corresponding objectified type
public static boolean isValidConversion(java.lang.Object value, java.lang.Class type)
value
- the value to convert from.type
- the type to convert to. For primitives, this must be the
corresponding objectified type
public static java.lang.Object convert(java.lang.Object value, java.lang.Class type)
value
- the value to convert from.type
- the type to convert to. For primitives, this must be the
corresponding objectified type
public static java.lang.Object convertBoolean(java.lang.Boolean value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertByte(java.lang.Byte value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertShort(java.lang.Short value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertChar(java.lang.Character value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertInt(java.lang.Integer value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertLong(java.lang.Long value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertFloat(java.lang.Float value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertDouble(java.lang.Double value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
public static java.lang.Object convertString(java.lang.String value, java.lang.Class type)
value
- the value to converttype
- the type to convert to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |