File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/dev/ditsche/validator Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,14 @@ public Validator add(Validatable validatable) {
76
76
return this ;
77
77
}
78
78
79
+ /**
80
+ * Validates an object against a schema and returns an error bag.
81
+ * Sets abort early to false.
82
+ *
83
+ * @param object The object that need to be validated.
84
+ * @param <T> The type of the validated object.
85
+ * @return The validated object.
86
+ */
79
87
public <T > T validate (T object ) {
80
88
return validate (object , false );
81
89
}
@@ -84,6 +92,8 @@ public <T> T validate(T object) {
84
92
* Validates an object against a schema and returns an error bag.
85
93
*
86
94
* @param object The object that need to be validated.
95
+ * @param <T> The type of the validated object.
96
+ * @return The validated object.
87
97
*/
88
98
public <T > T validate (T object , boolean abortEarly ) {
89
99
errorBag .clear ();
You can’t perform that action at this time.
0 commit comments