Skip to content

Initial Release

Compare
Choose a tag to compare
@kennedykori kennedykori released this 18 Oct 23:08

The initial release has one utility class which is composed of static methods that can be used to:

  • Check if a number is negative.
  • Check if a number falls within a specified range.
  • Validate that a number is not negative.
  • Validate that a number falls within a specified range.

A number in this context includes the following primitives: int, long, float, double and instances of the java.math.BigDecimal class.

  • Check if an object is serializable, i.e, the object implements the java.io.Serializable interface.
  • Validate that an object is serializable, i.e, the object implements the java.io.Serializable interface.
  • Check if the length of a java.lang.String falls within a given range.
  • Check if the length a java.lang.String is less than a specified value.
  • Check if the length of a java.lang.String is greater than a specified value.
  • Validate that the length of a java.lang.String falls within a specified range.
  • Validate that the length of a java.lang.String is less than a specified range.
  • Validate that the length of a java.lang.String is greater than a specified range.
  • Check that a java.lang.String is not empty.
  • Validate that a java.lang.String is not empty.

It should be noted that the methods that check for a given condition generally return true if the condition is met or false otherwise. Conditions that validate that a value meets a given condition will return the value if the value passes the checks or otherwise throw a java.lang.IllegalArgumentException.