Class Precondition

java.lang.Object
io.prometheus.jmx.common.util.Precondition

public class Precondition extends Object
  • Method Details

    • notNull

      public static void notNull(Object object)
      Method to check an Object is not null
      Parameters:
      object - object
    • notNull

      public static void notNull(Object object, String message)
      Method to check an Object is not null
      Parameters:
      object - object
      message - message
    • notNullOrEmpty

      public static void notNullOrEmpty(String string)
      Method to check that a String is not null and not empty
      Parameters:
      string - string
    • notNullOrEmpty

      public static void notNullOrEmpty(String string, String message)
      Method to check that a String is not null and not empty
      Parameters:
      string - string
      message - message
    • isGreaterThanOrEqualTo

      public static void isGreaterThanOrEqualTo(int value, int minimumValue)
      Method to check that an integer is greater than or equal to a value
      Parameters:
      value - value
      minimumValue - minimumValue
    • isGreaterThanOrEqualTo

      public static void isGreaterThanOrEqualTo(int value, int minimumValue, String message)
      Method to check that an integer is greater than or equal to a value
      Parameters:
      value - value
      minimumValue - minimumValue
      message - message