mardi 15 août 2017

Generics Call method on Enum

I have this exemple code:

class Enum Test {
    TEST("test") {
        @Override
        public void someThing(Param one) {
            // ... 
        }
   }

   public abstract void someThing(Param one);
}

How I can call the method "someThing" using generics? Or, is this not possible? Tkanks.





Aucun commentaire:

Enregistrer un commentaire