Class LongTranscoder

  • All Implemented Interfaces:
    Transcoder<java.lang.Long>

    public final class LongTranscoder
    extends PrimitiveTypeTranscoder<java.lang.Long>
    Transcoder that serializes and unserializes longs.
    • Field Detail

      • log

        private static final org.slf4j.Logger log
    • Constructor Detail

      • LongTranscoder

        public LongTranscoder()
    • Method Detail

      • encode

        public CachedData encode​(java.lang.Long l)
        Description copied from interface: Transcoder
        Encode the given object for storage.
        Parameters:
        l - the object
        Returns:
        the CachedData representing what should be sent
      • decode

        public java.lang.Long decode​(CachedData d)
        Description copied from interface: Transcoder
        Decode the cached object into the object it represents.
        Parameters:
        d - the data
        Returns:
        the return value