public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
delete(File file)
Delete the specified file or directory.
|
static void |
throwIfNull(Object o,
String argName)
Throws NullPointerException if "o" is null.
|
static void |
throwIfNullOrEmpty(String s,
String argName)
Throws NullPointerException if "s" is null or IllegalArgumentException if
"s" is an empty string.
|
static String |
translate(Comparators comparator)
Translate the given comparator to it's SQL string equivalent.
|
static String |
translate(Operators operator)
Translate the given operator to it's SQL string equivalent.
|
public static void throwIfNullOrEmpty(String s, String argName)
s - The string to check.argName - The name of the checked argument.public static void throwIfNull(Object o, String argName)
o - The object to check.argName - The name of the checked argument.public static String translate(Comparators comparator)
comparator - The comparator to translate.public static String translate(Operators operator)
operator - The comparator to translate.public static void delete(File file)
file - The file or directory to delete.Copyright © 2013. All rights reserved.