@Deprecated public class SwissArmyKnife extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debug
Deprecated.
|
Constructor and Description |
---|
SwissArmyKnife()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static int |
faculty(int i)
Deprecated.
Calculates the faculty for a given integer.
|
static String |
getDuration(long diff)
Deprecated.
Returns a String reporting the time passed during a given number of milliseconds.
|
static String |
getDuration(long startTime,
long endTime)
Deprecated.
Returns a string reporting the time passed between startTime and endTime,
both given in milliseconds, in hours, minutes, seconds and milliseconds.
|
static String |
printInt2D(int[][] contab)
Deprecated.
Returns a string representation of a 2D int matrix for printing or listing to the console.
|
public static final boolean debug
public static String getDuration(long startTime, long endTime)
startTime
- The start time in millisecondsendTime
- The end time in millisecondspublic static String getDuration(long diff)
diff
- A time span in millisecondspublic static String printInt2D(int[][] contab)
contab
- The 2D int matrix for which a string representation is to be generatredpublic static int faculty(int i)
i
- The int value for which the faculty is to be returnedCopyright © 2021. All rights reserved.