Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 177

javax.microedition.jcrmi
Class RemoteStub

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

public class RemoteStub
extends java.lang.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(java.lang.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
clone, finalize, 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(java.lang.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 java.lang.Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise

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 java.lang.Object
Returns:
remote object hashcode

JSR 177

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 177 specification.