Package io.prometheus.jmx.common.util
Class Precondition
java.lang.Object
io.prometheus.jmx.common.util.Precondition
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidIsGreaterThanOrEqualTo(int minimumValue, int value) Method to check that an integration is greater than or equal to a valuestatic voidMethod to check an Object is not nullstatic voidnotNullOrEmpty(String string) 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
-
notNullOrEmpty
Method to check that a String is not null and not empty- Parameters:
string- string
-
IsGreaterThanOrEqualTo
Method to check that an integration is greater than or equal to a value- Parameters:
minimumValue- minimumValuevalue- value
-