Class RedisCodecUtil


  • final class RedisCodecUtil
    extends java.lang.Object
    Utilities for codec-redis.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RedisCodecUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static byte[] longToAsciiBytes​(long value)  
      (package private) static short makeShort​(char first, char second)
      Returns a short value using endian order.
      (package private) static byte[] shortToBytes​(short value)
      Returns a byte[] of short value.
      • Methods inherited from class java.lang.Object

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

      • RedisCodecUtil

        private RedisCodecUtil()
    • Method Detail

      • longToAsciiBytes

        static byte[] longToAsciiBytes​(long value)
      • makeShort

        static short makeShort​(char first,
                               char second)
        Returns a short value using endian order.
      • shortToBytes

        static byte[] shortToBytes​(short value)
        Returns a byte[] of short value. This is opposite of makeShort().