| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.walend.lyophil.collection.MapToFreezablesIdentitor
This class implements Identitor using an object's own equals() and hashCode() methods for equals() and hashCode(), but checks for equal identifiers of freezables insice the valueEquals() method.
| Constructor Summary | |
MapToFreezablesIdentitor()
 | 
|
| Method Summary | |
 boolean | 
equals(java.lang.Object ob1,
       java.lang.Object ob2)
This method uses an object's own equals() method after first checking for nulls.  | 
 int | 
hashCode(java.lang.Object ob)
Return a hash code for ob using ob's hashCode method.  | 
 boolean | 
valueEquals(java.lang.Object ob1,
            java.lang.Object ob2)
Delegate to the equals method.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public MapToFreezablesIdentitor()
| Method Detail | 
public boolean equals(java.lang.Object ob1,
                      java.lang.Object ob2)
equals in interface Identitorpublic int hashCode(java.lang.Object ob)
hashCode in interface Identitor
public boolean valueEquals(java.lang.Object ob1,
                           java.lang.Object ob2)
valueEquals in interface Identitor
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||