org.gcube.common.events.impl
Class Utils

java.lang.Object
  extended by org.gcube.common.events.impl.Utils

public class Utils
extends Object

Library-wide utilities.

Author:
Fabio Simeoni

Constructor Summary
Utils()
           
 
Method Summary
static void notEmpty(String name, String o)
           
static void notNull(Object o)
           
static void notNull(String name, Object o)
           
static void valid(String name, Collection<String> o)
           
static void valid(String name, String o)
           
static void valid(String name, String[] o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

notNull

public static void notNull(Object o)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException

notNull

public static void notNull(String name,
                           Object o)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException

notEmpty

public static void notEmpty(String name,
                            String o)
                     throws IllegalArgumentException
Throws:
IllegalArgumentException

valid

public static void valid(String name,
                         String o)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException

valid

public static void valid(String name,
                         Collection<String> o)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException

valid

public static void valid(String name,
                         String[] o)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2013. All Rights Reserved.