hollow/src/main/java/com/netflix/hollow/api/codegen/HollowCodeGenerationUtils.java
public static String generateAccessortMethodName(String fieldName, Class<?> clazz) {
        String prefix = "get";
        if (boolean.class.equals(clazz) || Boolean.class.equals(clazz)) {
            for (String booleanPrefix : booleanMethodPrefixes) {
                if (fieldName.startsWith(booleanPrefix) && fieldName.length() > booleanPrefix.length()) {
                    char firstCharAfterBooleanPrefix = fieldName.charAt(booleanPrefix.length());
                    if (Character.isUpperCase(firstCharAfterBooleanPrefix)) {
                        return fieldName;
                    }
                }
            }
        }

        return substituteInvalidChars(prefix + uppercase(fieldName));
    }
public static String generateAccessortMethodName(String fieldName, Class<?> clazz) {
        String prefix = "get";
        if (boolean.class.equals(clazz) || Boolean.class.equals(clazz)) {
            for (String booleanPrefix : booleanMethodPrefixes) {
                if (fieldName.startsWith(booleanPrefix) && fieldName.length() > booleanPrefix.length()) {
                    char firstCharAfterBooleanPrefix = fieldName.charAt(booleanPrefix.length());
                    if (Character.isUpperCase(firstCharAfterBooleanPrefix)) {
                        return fieldName;
                    }
                }
            }
        }

        return substituteInvalidChars(prefix + uppercase(fieldName));
    }
public static String generateAccessortMethodName ( String fieldName , Class < ? > clazz ) { String prefix = "get" ; if ( boolean . class . equals ( clazz ) || Boolean . class . equals ( clazz ) ) { for ( String booleanPrefix : booleanMethodPrefixes ) { if ( fieldName . startsWith ( booleanPrefix ) && fieldName . length ( ) > booleanPrefix . length ( ) ) { char firstCharAfterBooleanPrefix = fieldName . charAt ( booleanPrefix . length ( ) ) ; if ( Character . isUpperCase ( firstCharAfterBooleanPrefix ) ) { return fieldName ; } } } } return substituteInvalidChars ( prefix + uppercase ( fieldName ) ) ; }
Rules: prepend "get" / "is" + upper case first char of field name

boolean/Boolean field:
- has a boolean prefix (@see {@link #booleanMethodPrefixes}), just return it; otherwise, prepend "get" + upper case first char

boolean isPrimary - isPrimary()
boolean hasStreams - hasStreams()
boolean playable - getPlayable()
boolean value - getValue()

other field type: prepend "get" + upper case first char

String title - getTitle()

@param fieldName
name of field
@param clazz
type of field
@return accessor method name
Rules : prepend get / is + upper case first char of field name