
com.github.davidmoten.util.Preconditions Maven / Gradle / Ivy
package com.github.davidmoten.util;
public final class Preconditions {
public static void checkNotNull(Object o) {
checkNotNull(o, null);
}
public static void checkNotNull(Object o, String message) {
if (o == null)
throw new NullPointerException(message);
}
public static void checkArgument(boolean b, String message) {
if (!b)
throw new IllegalArgumentException(message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy