Class FieldName


  • public final class FieldName
    extends java.lang.Object
    Utility class for handling field names.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String canonical​(java.lang.String name)
      Converts the given field name to a canonical format where the first character is lowercase.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • canonical

        public static java.lang.String canonical​(java.lang.String name)
        Converts the given field name to a canonical format where the first character is lowercase. If the name is null, empty, or already starts with a lowercase letter, it is unchanged.
        Parameters:
        name - The field name to be converted.
        Returns:
        The canonicalized field name, or the original name if it is null, empty, or already starts with a lowercase letter.