I want to generate a parametrized class in Java like
class MyClass<T>
First question: Can T be of type Byte[]?
Second question: If so, how can know I know that it is an array of type Byte? Usually I get the class and then check the class type.
Class typeT = (Class<T>)((ParameterizedType)this.getClass().getGenericSuperclass()).getActualTypeArguments()[0];
anInstance.getClass().equals(typeT)
But how does it work if it is an array?
Thank you in advance
Altober