title: Enums,use in switch case
body: <p>I have an Enum defined which contains method return type like "String",Float,List,Double etc.</p>
  
  <p>I will be using it in switch case statements. 
  For example my enum is</p>
  
  <pre><code>public enum MethodType {
      DOUBLE,LIST,STRING,ARRAYLIST,FLOAT,LONG;
  }
  </code></pre>
  
  <p>In a property file, I've key value pairs as follows.
  Test1=String
  Test2=Double</p>
  
  <p>In my code I'm getting the value for the key. I need to use the VALUE in Switch Case to Determine the Type and based on that I've to implement some logic.
  For example something like this</p>
  
  <pre><code>switch(MethodType.DOUBLE){
       case DOUBLE:
          //Dobule logic
  }
  </code></pre>
  
  <p>Can someone please help me to implement this?</p>