org.apache.accumulo.core.util
Class ArgumentChecker

java.lang.Object
  extended by org.apache.accumulo.core.util.ArgumentChecker

public class ArgumentChecker
extends Object

This class provides methods to check arguments of a variable number for null values, or anything else that might be required on a routine basis. These methods should be used for early failures as close to the end user as possible, so things do not fail later on the server side, when they are harder to debug. Methods are created for a specific number of arguments, due to the poor performance of array allocation for varargs methods.


Constructor Summary
ArgumentChecker()
           
 
Method Summary
static void notNull(Object arg1)
           
static void notNull(Object[] args)
           
static void notNull(Object arg1, Object arg2)
           
static void notNull(Object arg1, Object arg2, Object arg3)
           
static void notNull(Object arg1, Object arg2, Object arg3, Object arg4)
           
static void strictlyPositive(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentChecker

public ArgumentChecker()
Method Detail

notNull

public static final void notNull(Object arg1)

notNull

public static final void notNull(Object arg1,
                                 Object arg2)

notNull

public static final void notNull(Object arg1,
                                 Object arg2,
                                 Object arg3)

notNull

public static final void notNull(Object arg1,
                                 Object arg2,
                                 Object arg3,
                                 Object arg4)

notNull

public static final void notNull(Object[] args)

strictlyPositive

public static final void strictlyPositive(int i)


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.