Example usage for org.apache.commons.lang Validate notNull

List of usage examples for org.apache.commons.lang Validate notNull

Introduction

In this page you can find the example usage for org.apache.commons.lang Validate notNull.

Prototype

public static void notNull(Object object, String message) 

Source Link

Document

Validate an argument, throwing IllegalArgumentException if the argument is null.

 Validate.notNull(myObject, "The object must not be null"); 

Usage

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);
}