根据传入的字段名称检索设置器名称
//package com.nowjava; public class Main {/*来自 时 代 Java 公 众 号 - nowjava.com*/ /** * Retrieves a setter name based on a field name passed in * * @param fieldName field name to find setter for * @return name of setter method */ public static String fluentSetterName(String fieldName) { StringBuilder sb = new StringBuilder(); if (fieldName != null && fieldName.length() > 0) { sb.append(fieldName.substring(0, 1)); if (fieldName.length() > 1) { sb.append(fi