Package io.prometheus.jmx.common.util
Class Precondition
java.lang.Object
io.prometheus.jmx.common.util.Precondition
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidisGreaterThanOrEqualTo(int value, int minimumValue) Method to check that an integer is greater than or equal to a valuestatic voidisGreaterThanOrEqualTo(int value, int minimumValue, String message) Method to check that an integer is greater than or equal to a valuestatic voidMethod to check an Object is not nullstatic voidMethod to check an Object is not nullstatic voidnotNullOrEmpty(String string) Method to check that a String is not null and not emptystatic voidnotNullOrEmpty(String string, String message) Method to check that a String is not null and not empty
-
Method Details
-
notNull
Method to check an Object is not null- Parameters:
object- object
-
notNull
Method to check an Object is not null- Parameters:
object- objectmessage- message
-
notNullOrEmpty
Method to check that a String is not null and not empty- Parameters:
string- string
-
notNullOrEmpty
Method to check that a String is not null and not empty- Parameters:
string- stringmessage- message
-
isGreaterThanOrEqualTo
Method to check that an integer is greater than or equal to a value- Parameters:
value- valueminimumValue- minimumValue
-
isGreaterThanOrEqualTo
Method to check that an integer is greater than or equal to a value- Parameters:
value- valueminimumValue- minimumValue
-