You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
publicintsomeMethod(intvalue) {
if (nonNegative(value))
returnvalue;
elsereturn0;
}
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 namedrequireNegative
.Example usage of
notNegative
Example usage of
requireNegative
The text was updated successfully, but these errors were encountered: