Code example for CaseFormat

Methods: to

0
    * Oracle VM Server 
    */ 
   OVM, UNRECOGNIZED;
 
   public String value() {
      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, name());
   } 
 
   public String toString() {
      return value(); 
   } 
 
   public static Hypervisor fromValue(String v) {
      try { 
         return valueOf(CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_UNDERSCORE, v));
      } catch (IllegalArgumentException e) {
         return UNRECOGNIZED;
      } 
   } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE