/** * Builds {@link PrimitiveTypeRule}s for the specified types * * @param type an array of types * @return this instance to continue building rules */ public PrimitiveRuleBuilder primitive(String... type) { if (type.length == 0) { throw new IllegalArgumentException("Must specify a type"); } return new PrimitiveRuleBuilder(rules, versions, new HashSet<String>(Arrays.asList(type))); }
/** * Builds {@link PrimitiveTypeRule}s for the specified types * * @param type an array of types * @return this instance to continue building rules */ public PrimitiveRuleBuilder primitive(String... type) { if (type.length == 0) { throw new IllegalArgumentException("Must specify a type"); } return new PrimitiveRuleBuilder(rules, versions, new HashSet<String>(Arrays.asList(type))); }