Class SwissArmyKnife
java.lang.Object
org.openscience.cdk.tools.SwissArmyKnife
Deprecated.
A set of utilities which did not really fit into any other category.
- Author:
- steinbeck
- Created on:
- 2001-06-19
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intfaculty(int i) Deprecated.Calculates the faculty for a given integer.static StringgetDuration(long diff) Deprecated.Returns a String reporting the time passed during a given number of milliseconds.static StringgetDuration(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 StringprintInt2D(int[][] contab) Deprecated.Returns a string representation of a 2D int matrix for printing or listing to the console.
-
Field Details
-
debug
public static final boolean debugDeprecated.- See Also:
-
-
Constructor Details
-
SwissArmyKnife
public SwissArmyKnife()Deprecated.
-
-
Method Details
-
getDuration
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
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
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
-