Class CodecUtils


  • public class CodecUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CodecUtils()  
    • Method Summary

      Modifier and Type Method Description
      static java.util.List<java.lang.Object> arrayLikeToList​(java.lang.Object value)  
      static boolean compareArray​(java.util.List list, java.lang.Object other)  
      static boolean compareMap​(java.util.Map map1, java.lang.Object obj)  
      static java.util.List<Codec> decodeU8a​(byte[] u8a, java.util.List<Types.ConstructorCodec> types)  
      static void decodeU8a​(byte[] u8a, java.util.List<Types.ConstructorCodec> types, java.util.List<Codec> results)  
      static java.util.List<Codec> decodeU8a​(byte[] u8a, Types.ConstructorDef types)
      Given an u8a, and an array of Type constructors, decode the u8a against the types, and return an array of decoded values.
      • Methods inherited from class java.lang.Object

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

      • CodecUtils

        public CodecUtils()
    • Method Detail

      • decodeU8a

        public static java.util.List<Codec> decodeU8a​(byte[] u8a,
                                                      Types.ConstructorDef types)
        Given an u8a, and an array of Type constructors, decode the u8a against the types, and return an array of decoded values.
        Parameters:
        u8a - - The u8a to decode.
        types - - The array of Constructor to decode the U8a against.
      • decodeU8a

        public static void decodeU8a​(byte[] u8a,
                                     java.util.List<Types.ConstructorCodec> types,
                                     java.util.List<Codec> results)
      • arrayLikeToList

        public static java.util.List<java.lang.Object> arrayLikeToList​(java.lang.Object value)
      • compareMap

        public static boolean compareMap​(java.util.Map map1,
                                         java.lang.Object obj)
      • compareArray

        public static boolean compareArray​(java.util.List list,
                                           java.lang.Object other)