Class Validate

java.lang.Object
de.svenkubiak.jpushover.utils.Validate

public final class Validate extends Object
  • Constructor Details

    • Validate

      public Validate()
  • Method Details

    • checkArgument

      public static void checkArgument(boolean expression, Object errorMessage)
      Ensures the truth of an expression involving one or more parameters to the calling method.
      Parameters:
      expression - a boolean expression
      errorMessage - the exception message to use if the check fails; will be converted to a string using String.valueOf(Object)
      Throws:
      IllegalArgumentException - if expression is false