Class NoopSerDes
java.lang.Object
software.amazon.lambda.durable.serde.NoopSerDes
- All Implemented Interfaces:
SerDes
a placeholder for operations that don't have data to serialize or deserialize
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoopSerDes
public NoopSerDes()
-
-
Method Details
-
serialize
Description copied from interface:SerDesSerializes an object to a JSON string. -
deserialize
Description copied from interface:SerDesDeserializes a JSON string to an object of the specified generic type.This method supports complex generic types like
List<MyObject>orMap<String, MyObject>that cannot be represented by a simpleClassobject.Usage example:
List<String> items = serDes.deserialize(json, new TypeToken<List<String>>() {});- Specified by:
deserializein interfaceSerDes- Type Parameters:
T- the target type- Parameters:
data- the JSON string to deserializetypeToken- the type token capturing the generic type information- Returns:
- the deserialized object, or null if data is null
-