public class CustomUtils
extends java.lang.Object
Constructor and Description |
---|
CustomUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set |
addNoCaseSet(java.lang.String[] names,
java.util.Set set)
Utility method to add an array of names to a set, ignoring case.
|
static void |
clean(java.io.File dir)
Clean directory by recursively deleting children.
|
static java.util.Set |
nameSet(java.lang.String[] names)
Utility method to build a set from an array of names.
|
static java.util.Set |
noCaseNameSet(java.lang.String[] names)
Utility method to build a set from an array of names, ignoring case.
|
public static java.util.Set addNoCaseSet(java.lang.String[] names, java.util.Set set)
names
- (null
if none)set
- base set of names (null
if none)null
if none)public static java.util.Set noCaseNameSet(java.lang.String[] names)
names
- (null
if none)null
if name array also null
, otherwise non-null
)public static java.util.Set nameSet(java.lang.String[] names)
names
- (null
if none)null
if name array also null
, otherwise non-null
)public static void clean(java.io.File dir)
dir
- directory to be cleaned