Code example for CaseFormat

Methods: to

0
    * the external IP address is assigned automatically 
    */ 
   AUTOMATIC, UNRECOGNIZED;
 
   public String value() {
      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name());
   } 
 
   @Override 
   public String toString() {
      return value(); 
   } 
 
   public static MappingMode fromValue(String mode) {
      try { 
         return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(mode, "mode")));
      } catch (IllegalArgumentException e) {
         return UNRECOGNIZED;
      } 
   } 
Experience pair programming with AI  Get Codota for Java