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

The following are Jave code examples for showing how to use compare() 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.
Example 1
Project: jfrog-idea-plugin   File: License.java   Source Code and License Vote up 5 votes
@Override
public int compareTo(@NotNull License otherLicense) {
    if (this == otherLicense) {
        return 0;
    }
    if (otherLicense == null) {
        return 1;
    }
    return StringUtils.equals(name, otherLicense.name) ? StringUtils.compare(fullName, otherLicense.fullName) : StringUtils.compare(name, otherLicense.name);
}