Class ObjectStringifier

  • All Implemented Interfaces:
    Stringifier

    public final class ObjectStringifier
    extends Object
    implements Stringifier
    Useful as a default Stringifier even though it does nothing more than call toString().
    • Constructor Detail

      • ObjectStringifier

        public ObjectStringifier()
    • Method Detail

      • stringify

        public String stringify​(Object o)
        Description copied from interface: Stringifier
        Produce a String representation of an object. The actual output has no other semantics; each Stringifier may choose to target a particular type of user.

        The resulting String should be suitable for display to a user.

        Specified by:
        stringify in interface Stringifier
        Parameters:
        o - the Object for which a String should be produced