org.dataloader.impl.Assertions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-dataloader Show documentation
Show all versions of java-dataloader Show documentation
A pure Java 8 port of Facebook Dataloader
package org.dataloader.impl;
import java.util.Objects;
public class Assertions {
public static void assertState(boolean state, String message) {
if (!state) {
throw new AssertionException(message);
}
}
public static T nonNull(T t) {
return Objects.requireNonNull(t, "nonNull object required");
}
private static class AssertionException extends IllegalStateException {
public AssertionException(String message) {
super(message);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy