Interface Reason

All Superinterfaces:
Comparable<Reason>

public interface Reason extends Comparable<Reason>
A human-readable reason, which is the cause of a restriction.
  • Method Summary

    Modifier and Type
    Method
    Description
    merge(Reason other)
    Merges this reason with the provided reason, if possible.
    Gets the textual reason.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • toString

      String toString()
      Gets the textual reason.
      Overrides:
      toString in class Object
    • merge

      Reason merge(Reason other)
      Merges this reason with the provided reason, if possible.
      Returns:
      the new reason or null if they cannot be merged.