All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rationaleemotions.utils.Preconditions Maven / Gradle / Ivy

Go to download

A simple way of interacting with a remote host for executing commands, scp (upload and download)

There is a newer version: 1.0.2
Show newest version
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