Package net.sf.basedb.util.json
Class IdentityConverter<T>
java.lang.Object
net.sf.basedb.util.json.IdentityConverter<T>
- All Implemented Interfaces:
JsonConverter<T>
Simple "converter" implementation that simply return the same object.
- Since:
- 3.3
- Author:
- nicklas
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IdentityConverter
public IdentityConverter()
-
-
Method Details
-
convert
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
-