net.spy.util
Class IdentityEqualifier

java.lang.Object
  extended by net.spy.util.IdentityEqualifier

public class IdentityEqualifier
extends java.lang.Object

A wrapper object used to compare two objects on the basis of identity rather than equality.


Constructor Summary
IdentityEqualifier(java.lang.Object o)
          Get an IdentityEqualifier wrapping the given object.
 
Method Summary
 boolean equals(java.lang.Object other)
          True if this object has the same identity as the given object.
 java.lang.Object get()
          Get the object this IdentityEqualifier is wrapping.
 int hashCode()
          The hashcode of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityEqualifier

public IdentityEqualifier(java.lang.Object o)
Get an IdentityEqualifier wrapping the given object.

Method Detail

get

public java.lang.Object get()
Get the object this IdentityEqualifier is wrapping.

Returns:
the object

equals

public boolean equals(java.lang.Object other)
True if this object has the same identity as the given object.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
The hashcode of this object.

Overrides:
hashCode in class java.lang.Object
Returns:
System.identityHashCode for this object.


Copyright © 1995-2006 SPY Internetworking. All Rights Reserved.