| |
|
| java.lang.ref.WeakReference org.apache.harmony.rmi.server.RMIReference
RMIReference | public class RMIReference extends WeakReference (Code) | | Extension of WeakReference. It could contain strong reference to the object.
Also hashCode() and equals() methods are overridden. This class is used for
storing exported rmi objects.
author: Mikhail A. Markov version: $Revision: 1.1.2.3 $ |
Method Summary | |
public boolean | equals(Object obj) Returns true if the given object is an instance of this class and refer
to the same object as this reference and false otherwise. | public int | hashCode() Returns hash code for the referenced object. | public synchronized void | makeStrong(boolean strong) If the given parameter is true then makes this reference strong;
otherwise makes this reference weak. |
RMIReference | public RMIReference(Object obj)(Code) | | Constructs RMIReference from the given Object.
|
RMIReference | public RMIReference(Object obj, ReferenceQueue queue)(Code) | | Constructs RMIReference from the given Object and ReferenceQueue.
|
equals | public boolean equals(Object obj)(Code) | | Returns true if the given object is an instance of this class and refer
to the same object as this reference and false otherwise.
Parameters: obj - another object to be compared true if the given object is an instance of this class and referto the same object as this reference and false otherwise |
hashCode | public int hashCode()(Code) | | Returns hash code for the referenced object.
hash code for the referenced object |
makeStrong | public synchronized void makeStrong(boolean strong)(Code) | | If the given parameter is true then makes this reference strong;
otherwise makes this reference weak.
Parameters: strong - if true then this reference should be made strong |
|
|
|