java.io.Serializablepublic final class NbMarshalledObject
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
NbMarshalledObject(java.lang.Object obj) |
Creates a new
NbMarshalledObject that contains the
serialized representation of the provided object. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
Two objects are equal if the hold the same serialized
representation.
|
java.lang.Object |
get() |
Returns a new copy of the contained marshalledobject.
|
int |
hashCode() |
public NbMarshalledObject(java.lang.Object obj)
throws java.io.IOException
NbMarshalledObject that contains the
serialized representation of the provided object.obj - the object to be serialized (must be serializable)java.io.IOException - the object is not serializablepublic java.lang.Object get()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException - on any I/O problemjava.lang.ClassNotFoundException - if the class of the object cannot be foundpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with this MarshalledObjecttrue if the objects are serialized into the same bytestreamsBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.