|
|||||||||
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<OffsetTime,TimeProvider,FudgeTime>
org.fudgemsg.types.secondary.JSR310OffsetTimeFieldType
public class JSR310OffsetTimeFieldType
Secondary type for JSR-310 object conversion.
Field Summary | |
---|---|
static JSR310OffsetTimeFieldType |
INSTANCE
Singleton instance of the type. |
Method Summary | |
---|---|
boolean |
canConvertPrimary(Class<? extends TimeProvider> clazz)
Returns true if this converter can manipulate the requested class. |
protected OffsetTime |
primaryToSecondary(FudgeDateTime object)
Primary to secondary conversion where the primary object is a FudgeDateTime object. |
protected OffsetTime |
primaryToSecondary(FudgeTime object)
Primary to secondary conversion where the primary object is a FudgeTime object. |
OffsetTime |
primaryToSecondary(TimeProvider object)
Converts an object to the secondary type this converter supports. |
FudgeTime |
secondaryToPrimary(OffsetTime 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 JSR310OffsetTimeFieldType INSTANCE
Method Detail |
---|
public FudgeTime secondaryToPrimary(OffsetTime object)
object
parameter is not null
.
secondaryToPrimary
in class SecondaryFieldTypeBase<OffsetTime,TimeProvider,FudgeTime>
object
- the secondary instance
public OffsetTime primaryToSecondary(TimeProvider object)
object
- to convert
protected OffsetTime primaryToSecondary(FudgeDateTime object)
FudgeDateTime
object.
object
- primary object
protected OffsetTime primaryToSecondary(FudgeTime object)
FudgeTime
object.
object
- primary object
public boolean canConvertPrimary(Class<? extends TimeProvider> clazz)
clazz
- 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 |