Code example for CaseFormat

Methods: to

0
   COUNT_PER_SECOND,
   NONE,
   UNRECOGNIZED;
 
   public String value() {
      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()).replace("PerSecond", "/Second");
   } 
 
   @Override 
   public String toString() {
      return value(); 
   } 
 
   public static Unit fromValue(String value) {
      try { 
         return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value").replace(
                  "/", "Per"))); 
      } catch (IllegalArgumentException e) {
         return UNRECOGNIZED;
      } 
Connect your IDE to all the code out there  Get Codota for Java