org.fudgemsg.types.secondary
Class JSR310DateTimeProviderFieldType
java.lang.Object
org.fudgemsg.FudgeFieldType<SecondaryType>
org.fudgemsg.types.SecondaryFieldTypeBase<SecondaryType,PrimitiveType,PrimitiveType>
org.fudgemsg.types.SecondaryFieldType<DateTimeProvider,FudgeDateTime>
org.fudgemsg.types.secondary.JSR310DateTimeProviderFieldType
- All Implemented Interfaces:
- Serializable, FudgeTypeConverter<FudgeDateTime,DateTimeProvider>
public class JSR310DateTimeProviderFieldType
- extends SecondaryFieldType<DateTimeProvider,FudgeDateTime>
Secondary type for JSR-310 object conversion.
- See Also:
- Serialized Form
INSTANCE
public static final JSR310DateTimeProviderFieldType INSTANCE
- Singleton instance of the type.
secondaryToPrimary
public FudgeDateTime secondaryToPrimary(DateTimeProvider object)
- Converts an object from the secondary type to a primitive Fudge type for writing. An implementation
may assume that the
object
parameter is not null
.
- Specified by:
secondaryToPrimary
in class SecondaryFieldTypeBase<DateTimeProvider,FudgeDateTime,FudgeDateTime>
- Parameters:
object
- the secondary instance
- Returns:
- the underlying Fudge data to write out
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0