Code example for CaseFormat

Methods: to

0
    * @since vcloud api 0.9 
    */ 
   PORT_FORWARDING, UNRECOGNIZED;
 
   public String value() {
      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name());
   } 
 
   @Override 
   public String toString() {
      return value(); 
   } 
 
   public static NatType fromValue(String natType) {
      try { 
         return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(natType, "natType")));
      } catch (IllegalArgumentException e) {
         return UNRECOGNIZED;
      } 
   } 
Connect your IDE to all the code out there  Get Codota for Java