task2/solution06/src/org/apidesign/apifest08/currency/Assert.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 01 Oct 2008 10:43:05 +0200
changeset 29 f6073056b9fe
parent 21 task1/solution06/src/org/apidesign/apifest08/currency/Assert.java@61e4c4c120fd
permissions -rw-r--r--
Getting ready for task2: copying all solutions to new locations
     1 package org.apidesign.apifest08.currency;
     2 
     3 public final class Assert {
     4 	static void notNull(Object value, String argumentName) {
     5 		if(value == null) {
     6 			throw new IllegalArgumentException("The argument '" + argumentName + "' connot not be null");
     7 		}
     8 	}
     9 }
    10 
    11