public class Preconditions extends Object
We avoid adding libraries like guava to make this client lightweight.
| Constructor and Description |
|---|
Preconditions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNotNull(Object object,
String message) |
static void |
checkState(boolean condition,
String message) |
public static final void checkState(boolean condition,
String message)
condition - the condition to be meet so the state can be assumed correct.message - the message to be used for creating the exceptionIllegalStateException - if the conditions is not meet.public static final void checkNotNull(Object object, String message)
object - the object to check for null. @param message the message to be used for creating the exception.IllegalArgumentException - if the object is null.Copyright © 2024 MuleSoft, Inc.. All rights reserved.