author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Sat, 11 Oct 2008 23:38:46 +0200 | |
changeset 61 | 58ec6da75f6f |
parent 45 | task3/solution06/src/org/apidesign/apifest08/currency/Assert.java@251d0ed461fb |
permissions | -rw-r--r-- |
japod@6 | 1 |
package org.apidesign.apifest08.currency; |
japod@6 | 2 |
|
japod@21 | 3 |
public final 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 |
} |
japod@21 | 10 |
|
japod@21 | 11 |