Class ComponentPrecondition.Configuration

    • Method Detail

      • requireNotNull

        public static <T> T requireNotNull​(Class<? extends Implementor> implementor,
                                           T object,
                                           String errorMessage)
      • requireTrue

        public static void requireTrue​(Class<? extends Implementor> implementor,
                                       boolean expression,
                                       String errorMessage)
      • requireNotNullOrBlank

        public static <T extends DynamicValue<?>> T requireNotNullOrBlank​(Class<? extends Implementor> implementor,
                                                                          T dynamicValue,
                                                                          String errorMessage)
        Checks if the given dynamic value is null, or if it is a script if it has an empty script or if it is not a script it has a null value. If the dynamic value is string, it checks if the text string is empty as well.