Code example for CaseFormat

Methods: to

0
   INSTANCE_STORE,
 
   EBS, UNRECOGNIZED;
 
   public String value() {
      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, name());
   } 
 
   public String toString() {
      return value(); 
   } 
 
   public static RootDeviceType fromValue(String v) {
      try { 
         return valueOf(CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_UNDERSCORE, v));
      } catch (IllegalArgumentException e) {
         return UNRECOGNIZED;
      } 
   } 
} 
Contextual code suggestions in your IDE  Get Codota for Java