com.rationaleemotions.utils.Preconditions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-ssh Show documentation
Show all versions of simple-ssh Show documentation
A simple way of interacting with a remote host for executing commands, scp (upload and download)
package com.rationaleemotions.utils;
/**
*
*/
public class Preconditions {
public static void checkArgument(boolean condition, String errorMsg) {
if (!condition) {
throw new IllegalArgumentException(errorMsg);
}
}
public static void checkState(boolean condition, String errorMsg) {
if (!condition) {
throw new IllegalStateException((errorMsg));
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy