org.mule.util
Class Preconditions

java.lang.Object
  extended by org.mule.util.Preconditions

public class Preconditions
extends Object

Utility class to validate Preconditions


Constructor Summary
Preconditions()
           
 
Method Summary
static void checkArgument(boolean condition, String message)
           
static void checkState(boolean condition, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preconditions

public Preconditions()
Method Detail

checkArgument

public static void checkArgument(boolean condition,
                                 String message)
Parameters:
condition - Condition that the argument must satisfy
message - 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 satisfied
message - The Message of the exception in case the condition is invalid


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.