- java.lang.Object
-
- com.pervasive.datarush.json.SerializationBridge<T>
-
- Type Parameters:
T
- Must be a json-serializable type
- All Implemented Interfaces:
Serializable
public final class SerializationBridge<T> extends Object implements Serializable
This class serves as a wrapper for an object that is json serializable such that it can be java-serialized.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> SerializationBridge<T>
bridge(T object)
Creates a bridge for the given json-serializable object.T
getObject()
Returns the underlying object
-
-
-
Method Detail
-
bridge
public static <T> SerializationBridge<T> bridge(T object)
Creates a bridge for the given json-serializable object.- Type Parameters:
T
- the type of the json-serializable object- Parameters:
object
- the object to serialize or null- Returns:
- a bridge or null if the given object is null
-
getObject
public T getObject()
Returns the underlying object- Returns:
- the underyling object
-
-