Class StringToStringSerialiser

    • Constructor Detail

      • StringToStringSerialiser

        public StringToStringSerialiser()
    • Method Detail

      • canHandle

        public boolean canHandle​(Class clazz)
        Check whether the serialiser can serialise a particular class.
        Specified by:
        canHandle in interface Serialiser<String,​String>
        Parameters:
        clazz - the object class to serialise
        Returns:
        boolean true if it can be handled
      • preservesObjectOrdering

        public boolean preservesObjectOrdering()
        Indicates whether the serialisation process preserves the ordering of the INPUT, i.e. if x and y are objects of class INPUT, and x is less than y, then this method should return true if the serialised form of x is guaranteed to be less than the serialised form of y (using the standard ordering of String). If INPUT is not Comparable then this test makes no sense and false should be returned.
        Specified by:
        preservesObjectOrdering in interface Serialiser<String,​String>
        Returns:
        true if the serialisation will preserve the order of the INPUT, otherwise false.
      • isConsistent

        public boolean isConsistent()
        Description copied from interface: Serialiser
        Indicates whether the serialisation process produces a predictable, consistent OUTPUT, from a given INPUT, ie the same object should always serialise in the same way for this to be true.
        Specified by:
        isConsistent in interface Serialiser<String,​String>
        Returns:
        true if serialisation is consistent for a given object, otherwise false.