javax.microedition.jcrmi
Class RemoteStub

java.lang.Object
  extended by javax.microedition.jcrmi.RemoteStub

public class RemoteStub
extends Object

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

Since:
BlackBerry API 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:
BlackBerry API 4.2.1


Constructor Detail

RemoteStub

public RemoteStub()
Constructs a RemoteStub.

Since:
BlackBerry API 4.2.1


Method Detail

setRef

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

Parameters:
remoteref - the remote reference
Since:
BlackBerry API 4.2.1

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(), Hashtable
Since:
BlackBerry API 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
See Also:
Object.equals(java.lang.Object), Hashtable
Since:
BlackBerry API 4.2.1





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal