Java Examples for org.apache.commons.lang3.ObjectUtils.compare

The following java examples will help you to understand the usage of org.apache.commons.lang3.ObjectUtils.compare. These source code samples are taken from different open source projects.

Example 1
Project: thucydides-master  File: TestTag.java View source code
@Override
public int compareTo(TestTag otherTag) {
    int typeComparison = compare(getType(), otherTag.getType());
    if (typeComparison != 0) {
        return typeComparison;
    } else {
        return getName().compareToIgnoreCase(otherTag.getName());
    }
}