private Integer getNullOnValue ( Integer value , int nullValue ) { return ( NumberHelper . getInt ( value ) == nullValue ? null : value ) ; }
This method returns the value it is passed or null if the value matches the nullValue argument .