com.monica.javacom.util
Class MJCIntegerEquality

java.lang.Object
  |
  +--com.monica.javacom.util.MJCIntegerEquality
All Implemented Interfaces:
MJCEquality

public class MJCIntegerEquality
extends java.lang.Object
implements MJCEquality

Provides the functionality to compare Integers upon theis intValue.


Constructor Summary
MJCIntegerEquality()
           
 
Method Summary
 boolean equalsTo(java.lang.Object o1, java.lang.Object o2)
          Returns true only then if both o1 and o2 are Integers and their intValue is the same.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MJCIntegerEquality

public MJCIntegerEquality()
Method Detail

equalsTo

public boolean equalsTo(java.lang.Object o1,
                        java.lang.Object o2)
Returns true only then if both o1 and o2 are Integers and their intValue is the same.
Specified by:
equalsTo in interface MJCEquality
Parameters:
Object - o1: the first Object
Object - o2: the second Object
Returns:
boolean: true if both o1 and o2 are Integers and their intValue are the same