51Degrees Pipeline Java  4.1

51Degrees Pipeline for Java

fiftyone.pipeline.util.CheckArgument Class Reference

Detailed Description

Helper to guard that an argument fulfills its contract.

Static Public Member Functions

static void  guard (boolean condition, String message)
Throw an IllegalArgumentException if a condition is not met. More...
static< T > T  checkNotNull (T value, String message)
Checks if a value is null, and throws an IllegalArgumentException if it is. More...

Member Function Documentation

◆ checkNotNull()

static <T> T fiftyone.pipeline.util.CheckArgument.checkNotNull ( T   value,
String   message  
)
static

Checks if a value is null, and throws an IllegalArgumentException if it is.

Parameters
value - to check
message - message to add to the exception if one is thrown
<T> - type of the value
Returns
the value that was checked

◆ guard()

static void fiftyone.pipeline.util.CheckArgument.guard ( boolean   condition,
String   message  
)
static

Throw an IllegalArgumentException if a condition is not met.

Parameters
condition - result of a conditional expression
message - message to add to the exception if one is thrown