I have a setter method.
Then when another (say generate) method is run, I need to check the value of my fields. So in the case of String property, I need to know if
Add maven dependency for com.google.guava
Then in your code:
import com.google.common.base.Strings; if(!Strings.isNullOrEmpty(s)) { // Do stuff here }