|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.SerializedObject
public class SerializedObject
Class for storing an object in serialized form in memory. It can be used to make deep copies of objects, and also allows compression to conserve memory.
| Constructor Summary | |
|---|---|
SerializedObject(java.lang.Object toStore)
Creates a new serialized object (without compression). |
|
SerializedObject(java.lang.Object toStore,
boolean compress)
Creates a new serialized object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializedObject(java.lang.Object toStore)
throws java.lang.Exception
toStore - the object to store
java.lang.Exception - if the object couldn't be serialized
public SerializedObject(java.lang.Object toStore,
boolean compress)
throws java.lang.Exception
toStore - the object to storecompress - whether or not to use compression
java.lang.Exception - if the object couldn't be serialized| Method Detail |
|---|
public final boolean equals(java.lang.Object compareTo)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object getObject()
java.lang.Exception - if the object couldn't be restoredpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||