blob: 2e163d24a34e85a7ff66c96512d7ba09b611bd51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import lombok.experimental.UtilityClass;
final @UtilityClass class UtilityClassGeneric {
static class DTO {
DTO() {
super();
}
}
static <T>T convertValue(Class<T> toValueType) {
return null;
}
static DTO convert(Object json) {
return convertValue(DTO.class);
}
static Object convert(DTO dto) {
return null;
}
private @java.lang.SuppressWarnings("all") UtilityClassGeneric() {
super();
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
}
|