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

au.gov.amsa.ais.router.model.Util Maven / Gradle / Ivy

There is a newer version: 0.6.19
Show newest version
package au.gov.amsa.ais.router.model;

import com.github.davidmoten.guavamini.Preconditions;

final class Util {

    static void verifyId(String id) {
        verifyNotBlank("id", id);
    }

    static void verifyNotBlank(String name, String s) {
        Preconditions.checkNotNull(s);
        Preconditions.checkArgument(s.trim().length() > 0, name + " cannot be null or blank");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy