I would like to write a class that looks like this:
public class SomeClass<T<?>> {
T<String> someField;
// ...
}
But this is not valid Java. Is there any way to tell Java that the generic parameter T must be a class that accepts one generic parameter, such as List, ArrayList, Supplier or Consumer.