Package net.splitcells.dem.utils
Class CommonFunctions
- java.lang.Object
-
- net.splitcells.dem.utils.CommonFunctions
-
public class CommonFunctions extends Object
TODO cleanupCaller is the routine which is calling the callee.
From the perspective of the caller the thing which is passed is an argument. From the perspective of the routine that receives the call, i.e. the callee, the thing which is passed is a parameter.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
appendToFile(Path filePath, String content)
static String
bytesToString(byte[] bytes)
static <T> T[]
concat(T[] a, T[] b)
TODO variadic argument supportstatic String
currentTime()
static void
disableSystemOutput()
static void
findSystemOutput()
static int
hashCode(Object... args)
static void
makeSystemOutputTracing()
static <T> T
removeAny(Set<T> arg)
static Stream<String>
selectMatchesByRegex(String string, Pattern pattern, int group)
static String
stackTraceString(Throwable arg)
static String
toString(Throwable arg)
-
-
-
Method Detail
-
removeAny
public static <T> T removeAny(Set<T> arg)
-
hashCode
public static int hashCode(Object... args)
-
findSystemOutput
public static void findSystemOutput()
-
currentTime
public static String currentTime()
-
disableSystemOutput
public static void disableSystemOutput()
-
makeSystemOutputTracing
public static void makeSystemOutputTracing()
-
concat
public static <T> T[] concat(T[] a, T[] b)
TODO variadic argument support
-
bytesToString
public static String bytesToString(byte[] bytes)
-
-