org.fudgemsg.types
Class IndicatorFieldTypeConverter

java.lang.Object
  extended by org.fudgemsg.types.IndicatorFieldTypeConverter
All Implemented Interfaces:
FudgeTypeConverter<Object,IndicatorType>

public class IndicatorFieldTypeConverter
extends Object
implements FudgeTypeConverter<Object,IndicatorType>

Converts any object values to the indicator type.


Field Summary
static IndicatorFieldTypeConverter INSTANCE
          Singleton instance of the converter.
 
Method Summary
 boolean canConvertPrimary(Class<? extends Object> clazz)
          Always returns true.
 IndicatorType primaryToSecondary(Object object)
          Always returns the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static IndicatorFieldTypeConverter INSTANCE
Singleton instance of the converter.

Method Detail

canConvertPrimary

public boolean canConvertPrimary(Class<? extends Object> clazz)
Always returns true. Any object is converted to the singleton instance.

Specified by:
canConvertPrimary in interface FudgeTypeConverter<Object,IndicatorType>
Parameters:
clazz - to query
Returns:
true if a call to FudgeTypeConverter.primaryToSecondary(Primary) will succeed, false if it would fail

primaryToSecondary

public IndicatorType primaryToSecondary(Object object)
Always returns the singleton instance.

Specified by:
primaryToSecondary in interface FudgeTypeConverter<Object,IndicatorType>
Parameters:
object - to convert
Returns:
the converted object


Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0