mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
22 lines
566 B
Java
22 lines
566 B
Java
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") @lombok.Generated UtilityClassGeneric() {
|
|
super();
|
|
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
|
}
|
|
}
|