common_helper/src/main/java/com/xiongyingqi/util/EntityHelper.java
public static Method getMethodOfBeanByField(Class<?> clazz, Field field) {
        Method method = prefixMethodOfBeanByField("get", clazz, field);
        if (method == null
                && (field.getType().equals(Boolean.class) || field.getType().equals(boolean.class))) {
            method = prefixMethodOfBeanByField("is", clazz, field);
        }
        return method;
    }
public static Method getMethodOfBeanByField(Class<?> clazz, Field field) {
        Method method = prefixMethodOfBeanByField("get", clazz, field);
        if (method == null
                && (field.getType().equals(Boolean.class) || field.getType().equals(boolean.class))) {
            method = prefixMethodOfBeanByField("is", clazz, field);
        }
        return method;
    }
public static Method getMethodOfBeanByField ( Class < ? > clazz , Field field ) { Method method = prefixMethodOfBeanByField ( "get" , clazz , field ) ; if ( method == null && ( field . getType ( ) . equals ( Boolean . class ) || field . getType ( ) . equals ( boolean . class ) ) ) { method = prefixMethodOfBeanByField ( "is" , clazz , field ) ; } return method ; }
根据字段获取Class类的get方法 <br>
2013-10-21 下午12:05:53

@param clazz
@param field
@return
根据字段获取Class类的get方法 <br > 2013 - 10 - 21 下午12 : 05 : 53