How do I get javapoet to generate the java code below?
class B<T extends U> implements A<T> {
}
I know there is a class WildcardTypeName
, but it can only generate? extends U
or ? super U
.
what I want is T extends U
How do I get javapoet to generate the java code below?
class B<T extends U> implements A<T> {
}
I know there is a class WildcardTypeName
, but it can only generate? extends U
or ? super U
.
what I want is T extends U
Copyright © 2021 Jogjafile Inc.
In your description,
U
andA
should be exist class. You can use following code.Its output is