Package net.sf.basedb.util.json
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 Summary
Constructors Constructor Description IdentityConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convert(T object)
Convert the given object to a JSON-compatible object.
-
-
-
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 interfaceJsonConverter<T>
- Parameters:
object
- The objcet to convert- Returns:
- The parameter
-
-