public int compareTo()

in src/main/java/org/apache/nifi/processor/Relationship.java [59:76]


    public int compareTo(final Relationship o) {
        if (o == null) {
            return -1;
        }
        final String thisName = getName();
        final String thatName = o.getName();
        if (thisName == null && thatName == null) {
            return 0;
        }
        if (thisName == null) {
            return 1;
        }
        if (thatName == null) {
            return -1;
        }

        return thisName.compareTo(thatName);
    }