org.jclouds.util
Class Preconditions2

java.lang.Object
  extended by org.jclouds.util.Preconditions2

public class Preconditions2
extends Object

Preconditions not in guava.

Author:
Adrian Cole

Constructor Summary
Preconditions2()
           
 
Method Summary
static void checkNotEmpty(String nullableString)
          Will throw an exception if the argument is null or empty.
static void checkNotEmpty(String nullableString, String message)
          Will throw an exception if the argument is null or empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preconditions2

public Preconditions2()
Method Detail

checkNotEmpty

public static void checkNotEmpty(String nullableString)
Will throw an exception if the argument is null or empty.

Parameters:
nullableString - string to verify. Can be null or empty.

checkNotEmpty

public static void checkNotEmpty(String nullableString,
                                 String message)
Will throw an exception if the argument is null or empty. Accepts a custom error message.

Parameters:
nullableString - string to verify. Can be null or empty.
message - message to show in case of exception


Copyright © 2009-2012 jclouds. All Rights Reserved.