public class SerializedObject extends java.lang.Object implements java.io.Serializable, RevisionHandler
Constructor and Description |
---|
SerializedObject(java.lang.Object toStore)
Creates a new serialized object (without compression).
|
SerializedObject(java.lang.Object toStore,
boolean compress)
Creates a new serialized object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object compareTo) |
java.lang.Object |
getObject()
Returns a serialized object.
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
hashCode()
Returns a hashcode for this object.
|
public SerializedObject(java.lang.Object toStore) throws java.lang.Exception
toStore
- the object to storejava.lang.Exception
- if the object couldn't be serializedpublic SerializedObject(java.lang.Object toStore, boolean compress) throws java.lang.Exception
toStore
- the object to storecompress
- whether or not to use compressionjava.lang.Exception
- if the object couldn't be serializedpublic final boolean equals(java.lang.Object compareTo)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object getObject()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler