RemoteObject class implements the
java.lang.Object behavior for remote objects.
RemoteObject provides the remote semantics of Object by
implementing methods for hashCode, equals, and toString.
| Modifier and Type | Field and Description |
|---|---|
| protected transient RemoteRef | ref
The object's remote reference. |
| private static final long | serialVersionUID
indicate compatibility with JDK 1.1.x version of class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | RemoteObject(RemoteRef
remote reference newref)Creates a remote object, initialized with the specified remote reference. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if these Objects are equal; false otherwise.the Object to compare with obj)Overrides java. Compares two remote objects for equality. |
| public RemoteRef | Returns: remote reference for the remote objectReturns the remote reference for the remote object. |
| public int | |
| private void | readObject(ObjectInputStream
the in)ObjectInputStream from which data is read
|
| public String | toString()
Overrides java. Returns a String that represents the value of this remote object. |
| public static Remote | |
| private void | writeObject(ObjectOutputStream
the out)ObjectOutputStream to which data is written
|
| ref | back to summary |
|---|---|
| protected transient RemoteRef ref The object's remote reference. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID indicate compatibility with JDK 1.1.x version of class | |
| RemoteObject | back to summary |
|---|---|
| protected RemoteObject() Creates a remote object. | |
| RemoteObject | back to summary |
|---|---|
| protected RemoteObject(RemoteRef newref) Creates a remote object, initialized with the specified remote reference.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares two remote objects for equality.
Returns a boolean that indicates whether this remote object is
equivalent to the specified Object. This method is used when a
remote object is stored in a hashtable.
If the specified Object is not itself an instance of RemoteObject,
then this method delegates by returning the result of invoking the
| |
| getRef | back to summary |
|---|---|
| public RemoteRef getRef() Returns the remote reference for the remote object. Note The object returned from this method may be an instance of
an implementation-specific class. The
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hashcode for a remote object. Two remote object stubs that refer to the same remote object will have the same hash code (in order to support remote objects as keys in hash tables).
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
This method reads this object's serialized form for this class as follows: The If the external ref type name is
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String that represents the value of this remote object. | |
| toStub | back to summary |
|---|---|
| public static Remote toStub(Remote obj) throws NoSuchObjectException Returns the stub for the remote object
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException
This method writes this object's serialized form for this class as follows: The
| |