1 package au.gov.amsa.ais.router.model; 2 3 import com.github.davidmoten.guavamini.Preconditions; 4 5 final class Util { 6 7 static void verifyId(String id) { 8 verifyNotBlank("id", id); 9 } 10 11 static void verifyNotBlank(String name, String s) { 12 Preconditions.checkNotNull(s); 13 Preconditions.checkArgument(s.trim().length() > 0, name + " cannot be null or blank"); 14 } 15 }