dimanche 22 novembre 2015

how to get object of some class as response from enum when i pass a string

Here is the scenario, I am trying to get object(s) of some class type when i pass a string as input to the enum.

I have a list of static final variables mentioned below,

MyDetail.Carriers
MyDetail.Plan
MyDetail.Benefits

I want to select one or more objects depending of string input(i.e Carriers / Plan / Benefits).

Aucun commentaire:

Enregistrer un commentaire