![JAR search and dependency download from the Maven repository](/logo.png)
com.fillumina.performance.util.Assertion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of performance-tools Show documentation
Show all versions of performance-tools Show documentation
Configurable tool to easily compare performances of different code
snippets and to take performance telemetry of a running application.
The newest version!
package com.fillumina.performance.util;
/**
*
* @author Francesco Illuminati
*/
public class Assertion {
public static void isTrue(final boolean value, final String message) {
if (!value) {
throw new IllegalArgumentException(message);
}
}
public static void isNotNull(final Object value, final String message) {
if (value == null) {
throw new IllegalArgumentException(message);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy