CaseFormat is a utility class for converting between various ASCII case formats. Behavior is undefined for non-ASCII input.
Declaration: The declaration for com.google.common.base.CaseFormat is as:
@GwtCompatible public enum CaseFormat extends Enum
Below table gives the summary of Enum Constants and their description:
Below table gives the summary of methods of CaseFormat class and their description:
Original String: geeks_for_geeks Lower Camel Format: geeksForGeeks Upper Camel Format: GeeksForGeeks
The Enum constants of CaseFormat Class are:
[LOWER_HYPHEN, LOWER_UNDERSCORE, LOWER_CAMEL, UPPER_CAMEL, UPPER_UNDERSCORE]
Reference: Google Guava
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.