Package deltix.qsrv.hf.pub
Class CurrencyCodec
- java.lang.Object
-
- deltix.qsrv.hf.pub.CurrencyCodec
-
public class CurrencyCodec extends java.lang.Object
Converts 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 int
codeToInt(java.lang.CharSequence code)
static int
codeToInt(java.lang.String code)
static short
codeToShort(java.lang.CharSequence code)
static short
codeToShort(java.lang.String code)
static deltix.util.currency.CurrencyCodeList.CurrencyInfo
getCurrencyCode(int value)
static deltix.util.currency.CurrencyCodeList.CurrencyInfo
getCurrencyCodeByObject(java.lang.Object value)
static java.lang.String
intToCode(int n)
static void
intToCode(int n, char[] out)
static void
intToCode(int n, java.lang.Appendable out)
static boolean
isNumeric(int n)
static boolean
isValidValue(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)
-
-