public class

AssertUtil

extends Object
java.lang.Object
   ↳ org.rundeck.api.util.AssertUtil

Class Overview

Utility class for assertions

Summary

Public Constructors
AssertUtil()
Public Methods
static void notBlank(String input, String errorMessage)
Test if the given String is blank (null, empty or only whitespace)
static void notNull(Object object, String errorMessage)
Test if the given Object is null
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AssertUtil ()

Public Methods

public static void notBlank (String input, String errorMessage)

Test if the given String is blank (null, empty or only whitespace)

Parameters
input string
errorMessage to be used if the string is blank
Throws
IllegalArgumentException if the given string is blank

public static void notNull (Object object, String errorMessage)

Test if the given Object is null

Parameters
errorMessage to be used if the object is null
Throws
IllegalArgumentException if the given object is null