lundi 30 décembre 2019

Is there any toolkit for parse a String Literal to a Type in Java? [closed]

I hate those type resolvers in java, because of the complicated steps for parsing type. So i need a toolkit, which can act like this:

java.lang.reflect.Type noActualType = Tool.parse("java.util.Map<K, V>");
java.lang.reflect.Type actualType = Tool.parse("java.util.Map<java.lang.String, java.lang.Integer>");

So is there any toolkit like this?





Aucun commentaire:

Enregistrer un commentaire