Package io.prometheus.jmx.common.util
Class Precondition
java.lang.Object
io.prometheus.jmx.common.util.Precondition
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
isGreaterThanOrEqualTo
(int value, int minimumValue) Method to check that an integer is greater than or equal to a valuestatic void
isGreaterThanOrEqualTo
(int value, int minimumValue, String message) Method to check that an integer is greater than or equal to a valuestatic void
Method to check an Object is not nullstatic void
Method to check an Object is not nullstatic void
notNullOrEmpty
(String string) Method to check that a String is not null and not emptystatic void
notNullOrEmpty
(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
- minimumValuemessage
- message
-