All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.featherfly.common.bean.rule.CopyRuleIgnoreCaseEmpty Maven / Gradle / Ivy


package cn.featherfly.common.bean.rule;

import cn.featherfly.common.lang.LangUtils;

/**
 * 

* 如果复制源属性值为null或empty则不复制(empty判断array,collection,map,string) *

* * @author 钟冀 */ public class CopyRuleIgnoreCaseEmpty implements CopyRule{ /** * */ public CopyRuleIgnoreCaseEmpty() { } /** * {@inheritDoc} */ @Override public boolean isCopyEnabled(Object target, Object from, String propertyName, Object propertyValue) { if (LangUtils.isEmpty(propertyValue)) { return false; } return true; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy