Class LongTranscoder

All Implemented Interfaces:
Transcoder<Long>

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

    • log

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

    • LongTranscoder

      public LongTranscoder()
  • Method Details

    • encode

      public CachedData encode(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 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