Package org.openscience.cdk.tools
Class SwissArmyKnife
- java.lang.Object
-
- org.openscience.cdk.tools.SwissArmyKnife
-
@Deprecated public class SwissArmyKnife extends Object
Deprecated.A set of utilities which did not really fit into any other category.- Author:
- steinbeck
- Source code:
- main
- Created on:
- 2001-06-19
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
debug
Deprecated.
-
Constructor Summary
Constructors Constructor Description SwissArmyKnife()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
debug
public static final boolean debug
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDuration
public 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.- Parameters:
startTime
- The start time in millisecondsendTime
- The end time in milliseconds- Returns:
- A human readable representation of a timespan given in milliseconds
-
getDuration
public static String getDuration(long diff)
Deprecated.Returns a String reporting the time passed during a given number of milliseconds.- Parameters:
diff
- A time span in milliseconds- Returns:
- A human readable representation of a timespan given in milliseconds
-
printInt2D
public static String printInt2D(int[][] contab)
Deprecated.Returns a string representation of a 2D int matrix for printing or listing to the console.- Parameters:
contab
- The 2D int matrix for which a string representation is to be generatred
-
faculty
public static int faculty(int i)
Deprecated.Calculates the faculty for a given integer.- Parameters:
i
- The int value for which the faculty is to be returned- Returns:
- The faculty of i
-
-