Searched refs:validators (Results 1 – 3 of 3) sorted by relevance
40 public static Validator and(@NonNull Validator...validators) { in and() argument41 return new RequiredValidators(getInternalValidators(validators)); in and()51 public static Validator or(@NonNull Validator...validators) { in or() argument52 return new OptionalValidators(getInternalValidators(validators)); in or()55 private static InternalValidator[] getInternalValidators(Validator[] validators) { in getInternalValidators() argument56 Preconditions.checkArrayElementsNotNull(validators, "validators"); in getInternalValidators()58 final InternalValidator[] internals = new InternalValidator[validators.length]; in getInternalValidators()60 for (int i = 0; i < validators.length; i++) { in getInternalValidators()61 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()62 "element " + i + " not provided by Android System: " + validators[i]); in getInternalValidators() local[all …]
39 OptionalValidators(@NonNull InternalValidator[] validators) { in OptionalValidators() argument40 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in OptionalValidators()
39 RequiredValidators(@NonNull InternalValidator[] validators) { in RequiredValidators() argument40 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in RequiredValidators()