Object
XUtils
Set of miscellaneous functions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static void
printMemoryConsumption
(long delayMillis) Launches background thread which prints JVM memory consumption after given period of time.static String
Trims the string and: If string starts or ends with quote - nothing is done Surrounds it with quotes and returnsstatic void
runSafe
(ThrowingRunnable<Exception> runnable) static String
Trims the string and removes quotes from the head and tail.
-
Constructor Details
-
XUtils
public XUtils()
-
-
Method Details
-
printMemoryConsumption
public static void printMemoryConsumption(long delayMillis) Launches background thread which prints JVM memory consumption after given period of time. -
quote
Trims the string and:- If string starts or ends with quote - nothing is done
- Surrounds it with quotes and returns
-
unquote
Trims the string and removes quotes from the head and tail. If string has one quote or no quotes nothing is done. -
isWindows
public static boolean isWindows() -
runSafe
-