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
If you are doing android development, you can use:
TextUtils.isEmpty (CharSequence str)
Added in API level 1 Returns true if the string is null or 0-length.