protected void validateEqualInteger ( Integer i1 , Integer i2 , String errorKey , String errorMessage ) { if ( i1 == null || i2 == null || ( i1 . intValue ( ) != i2 . intValue ( ) ) ) { addError ( errorKey , errorMessage ) ; } }
Validate equal integer .