Class LongTranscoder

    • Constructor Detail

      • LongTranscoder

        public LongTranscoder()
    • Method Detail

      • 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