Java Code Examples for org.apache.commons.lang3.StringUtils.stripToNull()

The following are Jave code examples for showing how to use stripToNull() of the org.apache.commons.lang3.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: spring2ts   File: ServiceParamProps.java   View Source Code Vote up 5 votes
public ServiceParamProps(Multimap<String, String> map) {
    this.name = StringUtils.stripToNull(get(map, "name"));
    if(StringUtils.isBlank(this.name)) this.name = StringUtils.stripToNull(get(map, "value"));
    this.required = getBooleanValue(get(map, "required"));
    this.pathVar = StringUtils.stripToNull(get(map, "pathVar"));
    this.defaultValue = StringUtils.stripToNull(get(map, "defaultValue"));
}