com.univocity.api.common
Class Args

java.lang.Object
  extended by com.univocity.api.common.Args

public class Args
extends Object

Utility class used to validate arguments and configuration options passed to objects in uniVocity's API.

Author:
uniVocity Software Pty Ltd - dev@univocity.com

Constructor Summary
protected Args()
           
 
Method Summary
static void notBlank(CharSequence o, String fieldName)
           
static void notEmpty(char[] field, String fieldName)
           
static void notEmpty(CharSequence o, String fieldName)
           
static
<T> void
notEmpty(Collection<T> elements, String fieldName)
           
static
<T> void
notEmpty(int[] field, String fieldName)
           
static
<T> void
notEmpty(T[] sequence, String fieldName)
           
static void notNull(Object o, String fieldName)
           
static void positive(Integer o, String fieldName)
           
static void positiveOrZero(Integer o, String fieldName)
           
static void validFile(File file, String fieldName)
           
static void validTransactionIsolationLevel(int transactionIsolationLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Args

protected Args()
Method Detail

notNull

public static void notNull(Object o,
                           String fieldName)

positive

public static void positive(Integer o,
                            String fieldName)

positiveOrZero

public static void positiveOrZero(Integer o,
                                  String fieldName)

notEmpty

public static <T> void notEmpty(T[] sequence,
                                String fieldName)

notEmpty

public static <T> void notEmpty(Collection<T> elements,
                                String fieldName)

notEmpty

public static <T> void notEmpty(int[] field,
                                String fieldName)

notEmpty

public static void notEmpty(char[] field,
                            String fieldName)

notEmpty

public static void notEmpty(CharSequence o,
                            String fieldName)

notBlank

public static void notBlank(CharSequence o,
                            String fieldName)

validFile

public static void validFile(File file,
                             String fieldName)

validTransactionIsolationLevel

public static void validTransactionIsolationLevel(int transactionIsolationLevel)


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.