Class IdentityConverter<T>

java.lang.Object
net.sf.basedb.util.json.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 Details

    • IdentityConverter

      public IdentityConverter()
  • Method Details

    • 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