Add checks for checking if a numeric value is non negative and validators than ensure that a numeric value is negative. The checkers should be preferably named nonNegative and the validators should be preferably named requireNegative.
Example usage of notNegative
public int someMethod(int value) {
if (nonNegative(value))
return value;
else
return 0;
}
Example usage of requireNegative
public void setSomeValue(int value) {
this.someValue = requireNegative(value);
}