public class MiscUtils extends Object
Constructor and Description |
---|
MiscUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String str)
Capitalize the first character in the string if necessary.
|
static void |
closeQuietly(Closeable closeable)
Close something quietly.
|
static void |
closeQuietly(Socket socket)
Close socket quietly.
|
static boolean |
isBlank(CharSequence cs)
Return true if the string is null, empty, or all whitespace, otherwise false.
|
static String |
metricToString(ControlledMetric<?,?> metric)
Return the name of the metric build by looking at the fields.
|
public static void closeQuietly(Closeable closeable)
public static void closeQuietly(Socket socket)
public static boolean isBlank(CharSequence cs)
public static String capitalize(String str)
public static String metricToString(ControlledMetric<?,?> metric)
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.