Class IntegerTranscoder

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

    public final class IntegerTranscoder
    extends PrimitiveTypeTranscoder<java.lang.Integer>
    Transcoder that serializes and unserializes longs.
    • Constructor Detail

      • IntegerTranscoder

        public IntegerTranscoder()
    • Method Detail

      • encode

        public CachedData encode​(java.lang.Integer 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.Integer 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