blob: 497dfe67e5fa58bb96ad15ea5e254ee53a0e8423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package gregtech.api.util;
public class ValidationResult<T> {
private final ValidationType type;
private final T result;
private ValidationResult(ValidationType type, T result) {
this.type = type;
this.result = result;
}
public ValidationType getType() {
return this.type;
}
public T getResult() {
return this.result;
}
public static <T> ValidationResult<T> of(ValidationType result, T value) {
return new ValidationResult<>(result, value);
}
}
|