org.mule.util
Class Preconditions
java.lang.Object
org.mule.util.Preconditions
public class Preconditions
- extends Object
Utility class to validate Preconditions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Preconditions
public Preconditions()
checkArgument
public static void checkArgument(boolean condition,
String message)
- Parameters:
condition
- Condition that the argument must satisfymessage
- The Message of the exception in case the condition is invalid
checkState
public static void checkState(boolean condition,
String message)
- Parameters:
condition
- Condition that must be satisfiedmessage
- The Message of the exception in case the condition is invalid
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.