Methods with which to ease making comparisons in other classes.

public static class CompareUtils

Static methods

FirstNonZero(int...)

Returns the first non-zero parameter. If all parameters are zero, or no parameters are supplied, zero is returned.

Parameters:

  • params int ints - The ints to check

Returns: The first non-zero parameter, or zero if no non-zero parameters exist.