BenQ Mobile

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

BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.