javolution37.javolution
Class Javolution
- java.lang.Object
-
- javolution37.javolution.Javolution
-
public class Javolution extends java.lang.ObjectThis 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.StringVERSIONHolds the version information.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringendTime(int iterations)Ends measuring time and display the execution time per iteration.static voidmain(java.lang.String[] args)The librarymain(java.lang.String[])method.static voidprint(java.lang.Object obj)Prints an object toSystem.out(no line termination).static voidprintln(java.lang.Object obj)Prints an object toSystem.outand then terminates the line.static voidsetOutputStream(java.io.PrintStream out)Sets the output stream.static voidstartTime()Runs garbage collector then starts measuring time.
-
-
-
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.ExceptionThe librarymain(java.lang.String[])method. The archivejavolution.jaris 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 toSystem.outand then terminates the line.- Parameters:
obj- the object to be displayed.
-
print
public static void print(java.lang.Object obj)
Prints an object toSystem.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 ornullto 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 sincestartTime().
-
-
DMelt 3.0 © DataMelt by jWork.ORG