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.

Since:
JDE 4.2.1

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 remoteref)
          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.
Since:
JDE 4.2.1
Constructor Detail

RemoteStub

public RemoteStub()
Constructs a RemoteStub.
Since:
JDE 4.2.1
Method Detail

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
Since:
JDE 4.2.1

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
Since:
JDE 4.2.1

setRef

public void setRef(RemoteRef remoteref)
Sets the remote reference associated with this stub object.
Parameters:
remoteref - the remote reference
Since:
JDE 4.2.1



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.