Class Validate
java.lang.Object
com.github.palindromicity.syslog.util.Validate
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
notNull
Validate that anObjectis notNull.- Parameters:
object- The object to validatename- the name to use in the thrown exception- Throws:
IllegalArgumentException- if object is null
-
notBlank
Validate that anStringis notNullor empty.- Parameters:
string- The String to validatename- the name to use in the thrown exception- Throws:
IllegalArgumentException- if string is null or empty
-