org.jclouds.util
Class Preconditions2
java.lang.Object
org.jclouds.util.Preconditions2
public class Preconditions2
- extends Object
Preconditions not in guava.
- Author:
- Adrian Cole
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 |
Preconditions2
public Preconditions2()
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.