Class 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.
       
    • Constructor Detail

      • SwissArmyKnife

        public SwissArmyKnife()
        Deprecated.
    • 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 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