I'd like to have a generic public field inside an interface, like this:
interface Interface<T> {
T field;
}
However, the following throws with:
'com.packageName.Interface.this' cannot be referenced from a static context
Why?
I'd like to have a generic public field inside an interface, like this:
interface Interface<T> {
T field;
}
However, the following throws with:
'com.packageName.Interface.this' cannot be referenced from a static context
Why?