Class Incompatibility

  • All Implemented Interfaces:
    Cause
    Direct Known Subclasses:
    Opposites

    public class Incompatibility
    extends java.lang.Object
    implements Cause
    Object type that indicates an incompatibility between two objects. Incompatibility happens when there is no value that would satisfy both objects. Example: A: x > 10 B: x == 100
    • Constructor Detail

      • Incompatibility

        public Incompatibility​(Cause left,
                               Cause right)
    • Method Detail

      • getLeft

        public Cause getLeft()
      • getRight

        public Cause getRight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCauses

        public java.util.Collection<Cause> getCauses()
        Specified by:
        getCauses in interface Cause