Class Serializer.Default<M>

    • Method Detail

      • serialize

        public M serialize​(Object object)
        Description copied from interface: Serializer
        Serializes the given object graph into the medium type.
        Specified by:
        serialize in interface Serializer<M>
        Parameters:
        object - the graph's root
        Returns:
        the binary format
      • deserialize

        public <T> T deserialize​(M data)
        Description copied from interface: Serializer
        Recreates an object graph based on the given data.
        Specified by:
        deserialize in interface Serializer<M>
        Type Parameters:
        T - the object's type
        Parameters:
        data - the medium to read from
        Returns:
        the deserialized object graph