task1/solution06/src/org/apidesign/apifest08/currency/Assert.java
author japod@localhost
Sun, 28 Sep 2008 14:12:38 +0200
changeset 6 97662396c0fd
child 21 61e4c4c120fd
permissions -rw-r--r--
Adding solutions received for task1
japod@6
     1
package org.apidesign.apifest08.currency;
japod@6
     2
japod@6
     3
public class Assert {
japod@6
     4
	static void notNull(Object value, String argumentName) {
japod@6
     5
		if(value == null) {
japod@6
     6
			throw new IllegalArgumentException("The argument '" + argumentName + "' connot not be null");
japod@6
     7
		}
japod@6
     8
	}
japod@6
     9
}