Package me.totalfreedom.api
Interface Serializable<T>
- Type Parameters:
T- The type of object to serialize
public interface Serializable<T>
This interface represents a Serializable object. Objects which require custom serialization and cannot simply
override or call the default
Object.toString() method should implement this interface.-
Method Summary
-
Method Details
-
serialize
Serialize an object to a string. Ideally, this should serialize to an SQL query for easy data transfer.- Parameters:
object- The object to serialize- Returns:
- The serialized object
-
deserialize
Deserialize an object from a Serialized string..- Parameters:
serializedObject- The serialized object- Returns:
- The deserialized object
-