Java Utililty Methods Setter Name Create

List of utility methods to do Setter Name Create

Description

The list of methods to do Setter Name Create are organized into topic(s).

Method

StringtoSetterName(String field)
to Setter Name
if (field.length() >= 2 && Character.isUpperCase(field.charAt(1))) {
    return "set" + field;
return "set" + field.substring(0, 1).toUpperCase() + field.substring(1);
StringtoSetterName(String fieldName)
to Setter Name
return toAccessorName(fieldName, "set");
StringtoSetterName(String name)
to Setter Name
return tohPrefixialCamelName(name, "set");
StringtoSetterName(String property)
to Setter Name
StringBuffer setterName = new StringBuffer();
setterName.append(property);
setterName.setCharAt(0, Character.toUpperCase(property.charAt(0)));
setterName.insert(0, "set");
return setterName.toString();