Package deltix.qsrv.hf.pub
Class CurrencyCodec
- java.lang.Object
-
- deltix.qsrv.hf.pub.CurrencyCodec
-
public class CurrencyCodec extends java.lang.ObjectConverts three-letter codes into a 16-bit number and back.
-
-
Constructor Summary
Constructors Constructor Description CurrencyCodec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcodeToInt(java.lang.CharSequence code)static intcodeToInt(java.lang.String code)static shortcodeToShort(java.lang.CharSequence code)static shortcodeToShort(java.lang.String code)static deltix.util.currency.CurrencyCodeList.CurrencyInfogetCurrencyCode(int value)static deltix.util.currency.CurrencyCodeList.CurrencyInfogetCurrencyCodeByObject(java.lang.Object value)static java.lang.StringintToCode(int n)static voidintToCode(int n, char[] out)static voidintToCode(int n, java.lang.Appendable out)static booleanisNumeric(int n)static booleanisValidValue(java.lang.Object value)
-
-
-
Method Detail
-
codeToShort
public static short codeToShort(java.lang.String code)
-
codeToShort
public static short codeToShort(java.lang.CharSequence code)
-
codeToInt
public static int codeToInt(java.lang.CharSequence code)
-
codeToInt
public static int codeToInt(java.lang.String code)
-
isNumeric
public static boolean isNumeric(int n)
-
intToCode
public static void intToCode(int n, char[] out)
-
intToCode
public static void intToCode(int n, java.lang.Appendable out)
-
intToCode
public static java.lang.String intToCode(int n)
-
getCurrencyCodeByObject
public static deltix.util.currency.CurrencyCodeList.CurrencyInfo getCurrencyCodeByObject(java.lang.Object value)
-
getCurrencyCode
public static deltix.util.currency.CurrencyCodeList.CurrencyInfo getCurrencyCode(int value)
-
isValidValue
public static boolean isValidValue(java.lang.Object value)
-
-