Package com.fauna.mapping
Class FieldName
- java.lang.Object
-
- com.fauna.mapping.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.
-
-
-
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.
-
-