Documentation of 'javolution37.javolution.Javolution' Java class
Javolution
javolution37.javolution

Class Javolution



  • public class Javolution
    extends java.lang.Object

    This class contains the library main(java.lang.String[]) method for versionning, self-tests, and performance analysis.

    It is also the base class for the library benchmarks and self-tests.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String VERSION
      Holds the version information.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String endTime(int iterations)
      Ends measuring time and display the execution time per iteration.
      static void main(java.lang.String[] args)
      The library main(java.lang.String[]) method.
      static void print(java.lang.Object obj)
      Prints an object to System.out (no line termination).
      static void println(java.lang.Object obj)
      Prints an object to System.out and then terminates the line.
      static void setOutputStream(java.io.PrintStream out)
      Sets the output stream.
      static void startTime()
      Runs garbage collector then starts measuring time.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VERSION

        public static final java.lang.String VERSION
        Holds the version information.
        See Also:
        Constant Field Values
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        The library main(java.lang.String[]) method. The archive javolution.jar is auto-executable.
            java -jar javolution.jar version <i>(show version information)</i>
            java -jar javolution.jar test <i>(perform self-tests)</i>
            java -jar javolution.jar perf <i>(run benchmark)</i>
         
        Parameters:
        args - the option arguments.
        Throws:
        java.lang.Exception - if a problem occurs.
      • println

        public static void println(java.lang.Object obj)
        Prints an object to System.out and then terminates the line.
        Parameters:
        obj - the object to be displayed.
      • print

        public static void print(java.lang.Object obj)
        Prints an object to System.out (no line termination).
        Parameters:
        obj - the object to be displayed.
      • startTime

        public static void startTime()
        Runs garbage collector then starts measuring time.
      • setOutputStream

        public static void setOutputStream(java.io.PrintStream out)
        Sets the output stream.
        Parameters:
        out - the print stream or null to disable output.
      • endTime

        public static java.lang.String endTime(int iterations)
        Ends measuring time and display the execution time per iteration.
        Parameters:
        iterations - the number iterations performed since startTime().

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.