Package cdc.graphs

Interface PartiallyComparable<T>

  • Type Parameters:
    T - The object type.

    public interface PartiallyComparable<T>
    Interface implemented by objects that are partially comparable.
    Author:
    Damien Carbonne
    • Method Detail

      • partialCompare

        static <E extends Comparable<? super E>> PartialOrderPosition partialCompare​(E left,
                                                                                     E right)
        Convert a total order comparison to a partial order comparison.
        Type Parameters:
        E - The Comparable type.
        Parameters:
        left - The left value.
        right - The right value.
        Returns:
        The conversion of left.compareTo(right) into PartialOrderPosition.