public final class NbMarshalledObject extends Object implements Serializable
Constructor and Description |
---|
NbMarshalledObject(Object obj)
Creates a new
NbMarshalledObject that contains the
serialized representation of the provided object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two objects are equal if the hold the same serialized
representation.
|
Object |
get()
Returns a new copy of the contained marshalledobject.
|
int |
hashCode() |
public NbMarshalledObject(Object obj) throws IOException
NbMarshalledObject
that contains the
serialized representation of the provided object.obj
- the object to be serialized (must be serializable)IOException
- the object is not serializablepublic Object get() throws IOException, ClassNotFoundException
IOException
- on any I/O problemClassNotFoundException
- if the class of the object cannot be found