org.jquantlib
Class QL
- java.lang.Object
-
- org.jquantlib.QL
-
public class QL extends java.lang.ObjectStatic methods for validation and emiting log messages
-
-
Constructor Summary
Constructors Constructor and Description QL()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voiddebug(java.lang.String message)This method unconditionally emits a message to the logging system but does not throw any exception.static voiddebug(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voiddebug(java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidensure(boolean condition, java.lang.String message)Throws an error if a post-condition is not verifiedstatic voidensure(boolean condition, java.lang.String format, java.lang.Object... objects)static voiderror(java.lang.String message)This method unconditionally emits a message to the logging system but does not throw any exception.static voiderror(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voiderror(java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidinfo(java.lang.String message)This method unconditionally emits a message to the logging system but does not throw any exception.static voidinfo(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidinfo(java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidrequire(boolean condition, java.lang.Class<? extends java.lang.RuntimeException> klass, java.lang.String message)Throws an error if a pre-condition is not verifiedstatic voidrequire(boolean condition, java.lang.String message)Throws an error if a pre-condition is not verifiedstatic voidrequire(boolean condition, java.lang.String format, java.lang.Object... objects)Throws an error if a pre-condition is not verifiedstatic voidtrace(java.lang.String message)This method unconditionally emits a message to the logging system but does not throw any exception.static voidtrace(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidtrace(java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidvalidateExperimentalMode()This method to validate whether code is being run in experimental mode or notstatic voidwarn(java.lang.String message)This method unconditionally emits a message to the logging system but does not throw any exception.static voidwarn(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.static voidwarn(java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.
-
-
-
Method Detail
-
require
public static void require(boolean condition, java.lang.String format, java.lang.Object... objects) throws java.lang.RuntimeExceptionThrows an error if a pre-condition is not verified- Parameters:
condition- is a condition to be verifiedmessage- is a message emitted.- Throws:
a- LibraryException if the condition is not metjava.lang.RuntimeException
-
require
public static void require(boolean condition, java.lang.String message) throws java.lang.RuntimeExceptionThrows an error if a pre-condition is not verified- Parameters:
condition- is a condition to be verifiedmessage- is a message emitted.- Throws:
a- LibraryException if the condition is not metjava.lang.RuntimeException
-
require
public static void require(boolean condition, java.lang.Class<? extends java.lang.RuntimeException> klass, java.lang.String message) throws java.lang.RuntimeExceptionThrows an error if a pre-condition is not verified- Parameters:
condition- is a condition to be verifiedklass- is a Class which extends RuntimeExceptionmessage- is a message emitted.- Throws:
a- LibraryException if the condition is not metjava.lang.RuntimeException
-
ensure
public static void ensure(boolean condition, java.lang.String format, java.lang.Object... objects) throws java.lang.RuntimeException- Throws:
java.lang.RuntimeException
-
ensure
public static void ensure(boolean condition, java.lang.String message) throws java.lang.RuntimeExceptionThrows an error if a post-condition is not verified- Parameters:
condition- is a condition to be verifiedmessage- is a message emitted.- Throws:
a- LibraryException if the condition is not metjava.lang.RuntimeException
-
error
public static void error(java.lang.String message)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
error
public static void error(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
error
public static void error(java.lang.Throwable t)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
warn
public static void warn(java.lang.String message)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
warn
public static void warn(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
warn
public static void warn(java.lang.Throwable t)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
info
public static void info(java.lang.String message)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
info
public static void info(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
info
public static void info(java.lang.Throwable t)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
debug
public static void debug(java.lang.String message)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
debug
public static void debug(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
debug
public static void debug(java.lang.Throwable t)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
trace
public static void trace(java.lang.String message)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
trace
public static void trace(java.lang.String message, java.lang.Throwable t)This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
trace
public static void trace(java.lang.Throwable t)
This method unconditionally emits a message to the logging system but does not throw any exception.- Parameters:
message- is a message to be emitted
-
validateExperimentalMode
public static void validateExperimentalMode()
This method to validate whether code is being run in experimental mode or not
-
-
DataMelt 3.0 © DataMelt by jWork.ORG