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 final boolean
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SwissArmyKnife

      public SwissArmyKnife()
      Deprecated.
  • Method Details

    • 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 milliseconds
      endTime - 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