Class IdentityConverter<T>

  • All Implemented Interfaces:
    JsonConverter<T>

    public class IdentityConverter<T>
    extends Object
    implements JsonConverter<T>
    Simple "converter" implementation that simply return the same object.
    Since:
    3.3
    Author:
    nicklas
    • Constructor Detail

      • IdentityConverter

        public IdentityConverter()
    • Method Detail

      • convert

        public Object convert​(T object)
        Description copied from interface: JsonConverter
        Convert the given object to a JSON-compatible object. The parameter may be null.
        Specified by:
        convert in interface JsonConverter<T>
        Parameters:
        object - The objcet to convert
        Returns:
        The parameter