src/org/kocakosm/pitaya/util/Parameters.java
public static void checkCondition(boolean condition, String msg,
		Object... args)
	{
		if (!condition) {
			throw new IllegalArgumentException(format(msg, args));
		}
	}
public static void checkCondition(boolean condition, String msg,
		Object... args)
	{
		if (!condition) {
			throw new IllegalArgumentException(format(msg, args));
		}
	}
public static void checkCondition ( boolean condition , String msg , Object ... args ) { if ( ! condition ) { throw new IllegalArgumentException ( format ( msg , args ) ) ; } }
Checks the truth of the given condition checking parameters validity.

@param condition the boolean condition to test.
@param msg the error message format string.
@param args the error message arguments.

@throws IllegalArgumentException if the condition is {@code false}.
Checks the truth of the given condition checking parameters validity .