org.fudgemsg.types.secondary
Class JavaUtilTimeZoneFieldType
java.lang.Object
org.fudgemsg.FudgeFieldType<SecondaryType>
org.fudgemsg.types.SecondaryFieldTypeBase<SecondaryType,PrimitiveType,PrimitiveType>
org.fudgemsg.types.SecondaryFieldType<TimeZone,String>
org.fudgemsg.types.secondary.JavaUtilTimeZoneFieldType
- All Implemented Interfaces:
- Serializable, FudgeTypeConverter<String,TimeZone>
public class JavaUtilTimeZoneFieldType
- extends SecondaryFieldType<TimeZone,String>
Secondary type for TimeZone
conversion to/from a String
transport object.
- See Also:
- Serialized Form
INSTANCE
public static final JavaUtilTimeZoneFieldType INSTANCE
- Singleton instance of the type.
secondaryToPrimary
public String secondaryToPrimary(TimeZone 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<TimeZone,String,String>
- Parameters:
object
- the secondary instance
- Returns:
- the underlying Fudge data to write out
primaryToSecondary
public TimeZone primaryToSecondary(String object)
- Primary to secondary conversion, where the primary type is a
String
.
- Specified by:
primaryToSecondary
in interface FudgeTypeConverter<String,TimeZone>
- Overrides:
primaryToSecondary
in class SecondaryFieldType<TimeZone,String>
- Parameters:
object
- primary object
- Returns:
- the converted
TimeZone
object
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0