Code example for CaseFormat

Methods: to

0
    * @since vcloud api 0.8 
    */ 
   NAT_ROUTED, UNRECOGNIZED;
 
   public String value() {
      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name());
   } 
 
   @Override 
   public String toString() {
      return value(); 
   } 
 
   public static FenceMode fromValue(String fenceMode) {
      try { 
         return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(fenceMode, "fenceMode")));
      } catch (IllegalArgumentException e) {
         return UNRECOGNIZED;
      } 
   } 
Contextual code suggestions in your IDE  Get Codota for Java