public class SimpleValidation<T> extends Object implements Validation<T>
构造器和说明 |
---|
SimpleValidation() |
限定符和类型 | 方法和说明 |
---|---|
static <T> SimpleValidation<T> |
from(Predicate<T> predicate,
String onErrorMessage) |
ValidationResult |
test(T param) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, or
public static <T> SimpleValidation<T> from(Predicate<T> predicate, String onErrorMessage)
public ValidationResult test(T param)
test
在接口中 Validation<T>
Copyright © 2019. All rights reserved.