List of usage examples for org.apache.commons.lang Validate notNull
public static void notNull(Object object, String message)
Validate an argument, throwing IllegalArgumentException
if the argument is null
.
Validate.notNull(myObject, "The object must not be null");
From source file:com.opengamma.analytics.util.surface.StringValue.java
/** * Constructor from an existing map. The map is used in the new object (no new map is created). * @param map The map./* w w w . j ava 2 s .com*/ */ private StringValue(final HashMap<String, Double> map) { Validate.notNull(map, "Map"); _data = new HashMap<String, Double>(map); }