Class CurrencyCodec


  • public class CurrencyCodec
    extends java.lang.Object
    Converts three-letter codes into a 16-bit number and back.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short USD  
      static short XXX  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • XXX

        public static final short XXX
      • USD

        public static final short USD
    • Constructor Detail

      • CurrencyCodec

        public CurrencyCodec()
    • 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)