I need to implement a Java interface that has a method similar to this:
boolean canWrite(Type t);
In my case it should return true if the type is List<URI>.
I though of doing something like return t.equals(URI_LIST_TYPE), but I don't know how to get an instance of Type that represents List<URI>.
Is there a pretty way to do it?
Aucun commentaire:
Enregistrer un commentaire