Modifier and Type | Method and Description |
---|---|
static void |
err(Object aMsg)
Log to stderr.
|
static boolean |
isInRange(int aNumber,
int aLow,
int aHigh)
Return true only if aNumber is in the range
aLow..aHigh (inclusive).
|
static void |
log(Object aMsg)
Log to stdout.
|
static void |
logVerbose(Object aMsg)
Print to stdout only if a System property named 'verbose' exists.
|
static String |
quote(String aText)
Put the given text in single quotes.
|
static double |
radians(double aDegrees)
Convert degrees to radians.
|
static boolean |
textHasContent(String aText)
Return true only if aText is not null,
and if its raw String is not empty after trimming.
|
public static final void log(Object aMsg)
This tool doesn't use Java's logging classes, simply to make it easier to run for those not familiar with Java's logging mechanism. In general, this tool's logging needs are minimal.
public static final void logVerbose(Object aMsg)
public static boolean textHasContent(String aText)
String.trim()
.)aText
- possibly-null.public static String quote(String aText)
public static double radians(double aDegrees)
public static boolean isInRange(int aNumber, int aLow, int aHigh)
For checking argument validity, Args.checkForRange(int, int, int)
should
be used instead of this method.
aLow
- less than or equal to aHigh.Starfield - Copyright Hirondelle Systems. Published March 1, 2014