mardi 28 juillet 2020

Obtaining type class from java class using reflections

I currently have a setup like this:

public abstract class Configurable<T> {
    //...
}
public class ConfigurableBoolean extends Configurable<Boolean> {
    //...
}

I'm looking to obtain a Boolean class from ConfigurableBoolean but Integer on a ConfigurableInt (similar setup)





Aucun commentaire:

Enregistrer un commentaire