public class Preconditions extends Object
Utility class to validate Preconditions
Constructor and Description |
---|
Preconditions() |
Modifier and Type | Method and Description |
---|---|
static void |
checkArgument(boolean condition,
String message) |
static void |
checkState(boolean condition,
String message) |
public static void checkArgument(boolean condition, String message)
condition
- Condition that the argument must satisfymessage
- The Message of the exception in case the condition is invalidpublic static void checkState(boolean condition, String message)
condition
- Condition that must be satisfiedmessage
- The Message of the exception in case the condition is invalidCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.