So, i have one stupid question, but i want to know the answer). I have a parameterized method:
public <E,T extends Enum<T> & ParametrizedCloneable<E>> E getE(Class<T> eClass){...}
And perhaps I want to have a list or annotation with classes which i can use in this method.
List<? extends Enum & ParametrizedCloneable> - incorrect
List<? extends Enum ,ParametrizedCloneable> - incorrect too
What the right way?