public interface C2Serializer
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
deserialize(String content,
Class<T> valueType)
Helper to deserialise an object
|
<T> Optional<String> |
serialize(T content)
Helper to serialise object
|
<T> Optional<String> serialize(T content)
T - the type of the objectcontent - object to be serialised<T> Optional<T> deserialize(String content, Class<T> valueType)
T - the type of the target objectcontent - the string representation of the object to be deserialsedvalueType - the class of the target objectCopyright © 2022 Apache NiFi Project. All rights reserved.