SATSA - JSR177

javax.microedition.jcrmi
Class RemoteStub

java.lang.Object
  |
  +--javax.microedition.jcrmi.RemoteStub

public class RemoteStub
extends Object

The RemoteStub class is the common superclass for stubs of remote objects.


Field Summary
protected  RemoteRef ref
          The remote reference associated with this stub object.
 
Constructor Summary
RemoteStub()
          Constructs a RemoteStub.
 
Method Summary
 boolean equals(Object obj)
          Compares two remote objects for equality.
 int hashCode()
          Returns a hashcode for a remote object.
 void setRef(RemoteRef ref)
          Sets the remote reference associated with this stub object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

protected RemoteRef ref
The remote reference associated with this stub object. The stub uses this reference to perform a remote method call.

Constructor Detail

RemoteStub

public RemoteStub()
Constructs a RemoteStub.

Method Detail

setRef

public void setRef(RemoteRef ref)
Sets the remote reference associated with this stub object.

Parameters:
ref - the remote reference

equals

public boolean equals(Object obj)
Compares two remote objects for equality. Two remote objects are equal if their remote references are non-null and equal.

Overrides:
equals in class Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise
See Also:
Boolean.hashCode(), java.util.Hashtable

hashCode

public int hashCode()
Returns a hashcode for a remote object. Two remote object stubs that refer to the same remote object will have the same hash code.

Overrides:
hashCode in class Object
Returns:
remote object hashcode
See Also:
Object.equals(java.lang.Object), java.util.Hashtable

SATSA - JSR177

Submit a comment or suggestion Version 1.0 of SATSA Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2004 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.