base/common/src/main/com/thesett/common/util/logic/PartialOrdering.java
public int compare(T a, T b)
    {
        boolean aRb = partialOrdering.evaluate(a, b);

        if (!aRb)
        {
            return -1;
        }

        boolean bRa = partialOrdering.evaluate(b, a);

        return (aRb && bRa) ? 0 : 1;
    }
public int compare(T a, T b)
    {
        boolean aRb = partialOrdering.evaluate(a, b);

        if (!aRb)
        {
            return -1;
        }

        boolean bRa = partialOrdering.evaluate(b, a);

        return (aRb && bRa) ? 0 : 1;
    }
public int compare ( T a , T b ) { boolean aRb = partialOrdering . evaluate ( a , b ) ; if ( ! aRb ) { return - 1 ; } boolean bRa = partialOrdering . evaluate ( b , a ) ; return ( aRb && bRa ) ? 0 : 1 ; }
Translates the partial order into the +1, 0, -1 convention needed by Comparators.

@param  a The first item to compare.
@param  b The second item to compare.

@return 0 if the two elements are equal under the partial ordering, 1 if aRb, and -1 if !aRb.
Translates the partial order into the + 1 0 - 1 convention needed by Comparators .