public static RuleKey of(String repository, String rule) {
    Preconditions.checkArgument(!isEmpty(repository), "Repository must be set");
    Preconditions.checkArgument(!isEmpty(rule), "Rule must be set");
    return new RuleKey(repository, rule);
  }
public static RuleKey of ( String repository , String rule ) { Preconditions . checkArgument ( ! isEmpty ( repository ) , "Repository must be set" ) ; Preconditions . checkArgument ( ! isEmpty ( rule ) , "Rule must be set" ) ; return new RuleKey ( repository , rule ) ; }
Create a key. Parameters are NOT null.