public static Map<String, Object> beanToMap(Object bean, Map<String, Object> targetMap, final boolean isToUnderlineCase, boolean ignoreNullValue) {
		if (bean == null) {
			return null;
		}

		return beanToMap(bean, targetMap, ignoreNullValue, new Editor<String>() {

			@Override
			public String edit(String key) {
				return isToUnderlineCase ? StrUtil.toUnderlineCase(key) : key;
			}
		});
	}
public static Map < String , Object > beanToMap ( Object bean , Map < String , Object > targetMap , final boolean isToUnderlineCase , boolean ignoreNullValue ) { if ( bean == null ) { return null ; } return beanToMap ( bean , targetMap , ignoreNullValue , new Editor < String > ( ) { @ Override public String edit ( String key ) { return isToUnderlineCase ? StrUtil . toUnderlineCase ( key ) : key ; } } ) ; }
对象转Map

@param bean bean对象
@param targetMap 目标的Map
@param isToUnderlineCase 是否转换为下划线模式
@param ignoreNullValue 是否忽略值为空的字段
@return Map
@since 3.2.3