Java™ Platform
Standard Ed. 8
compact2, compact3
java.rmi.server
Class RemoteObject
-
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
protected RemoteRef |
ref |
The object's remote reference.
|
-
Constructor Summary
Constructors
| Modifier |
Constructor |
Description |
protected |
RemoteObject() |
Creates a remote object.
|
protected |
RemoteObject(RemoteRef newref) |
Creates a remote object, initialized with the specified remote
reference.
|
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Compares two remote objects for equality.
|
RemoteRef |
getRef() |
Returns the remote reference for the remote object.
|
int |
hashCode() |
Returns a hashcode for a remote object.
|
String |
toString() |
Returns a String that represents the value of this remote object.
|
static Remote |
toStub(Remote obj) |
Returns the stub for the remote object obj passed
as a parameter.
|
-
-
Constructor Detail
-
RemoteObject
protected RemoteObject()
Creates a remote object.
-
RemoteObject
protected RemoteObject(RemoteRef newref)
Creates a remote object, initialized with the specified remote
reference.
- Parameters:
newref - remote reference
-
Method Detail
-
equals
public boolean equals(Object obj)
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
equals method of its parameter with this remote object
as the argument.
- Overrides:
equals in class Object
- Parameters:
obj - the Object to compare with
- Returns:
- true if these Objects are equal; false otherwise.
- See Also:
Hashtable
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.