Here is simplified code example
public V[] values() {
List<V> values = pojo.getValues();
return ; // values to array
}
Signature of a method asking for V[] return type, but I got a List. Is it possible to convert List to V[] without reflection API?
I cant use values.toArray(new V[0]) or populate the array by myself because of error - "Type parameter 'V' cannot be instantiated directl"