|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.FudgeFieldType<SecondaryType>
org.fudgemsg.types.SecondaryFieldTypeBase<Date,Object,FudgeDateTime>
org.fudgemsg.types.secondary.JavaUtilDateFieldType
public class JavaUtilDateFieldType
Secondary type for Date
conversion to/from a FudgeDate
or FudgeDateTime
transport object. Note that once the Java Time Framework is part of the main JDK the Date
class will implement InstantProvider
and this type can be deprecated.
Field Summary | |
---|---|
static JavaUtilDateFieldType |
INSTANCE
Singleton instance of the type. |
Method Summary | |
---|---|
boolean |
canConvertPrimary(Class<?> javaType)
Returns true if this converter can manipulate the requested class. |
protected Date |
primaryToSecondary(FudgeDate object)
Primary secondary conversion, where the primary type is a FudgeDate . |
protected Date |
primaryToSecondary(FudgeDateTime object)
Primary to secondary conversion, where the primary type is a FudgeDateTime . |
Date |
primaryToSecondary(Object object)
Converts an object to the secondary type this converter supports. |
FudgeDateTime |
secondaryToPrimary(Date object)
Converts an object from the secondary type to a primitive Fudge type for writing. |
Methods inherited from class org.fudgemsg.types.SecondaryFieldTypeBase |
---|
getPrimaryType, getVariableSize, readValue, writeValue |
Methods inherited from class org.fudgemsg.FudgeFieldType |
---|
equals, getFixedSize, getJavaType, getTypeId, hashCode, isVariableSize, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final JavaUtilDateFieldType INSTANCE
Method Detail |
---|
public FudgeDateTime secondaryToPrimary(Date object)
object
parameter is not null
.
secondaryToPrimary
in class SecondaryFieldTypeBase<Date,Object,FudgeDateTime>
object
- the secondary instance
public Date primaryToSecondary(Object object)
object
- to convert
protected Date primaryToSecondary(FudgeDateTime object)
FudgeDateTime
.
object
- primary object
Date
objectprotected Date primaryToSecondary(FudgeDate object)
FudgeDate
.
object
- primary object
Date
objectpublic boolean canConvertPrimary(Class<?> javaType)
javaType
- to query
true
if a call to FudgeTypeConverter.primaryToSecondary(Primary)
will succeed, false
if it would fail
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |