Class Violations

  • public class Violations
    extends Object
    A class for accumulating constraint violations across a number of mutations.
    • Constructor Detail

      • Violations

        public Violations()
        Creates a new empty object.
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Checks if this object is empty, i.e., that no violations have been added.
        true if empty
      • add

        public void add​(ConstraintViolationSummary cvs)
        Adds a violation. If a matching violation was already added, then its count is increased.
        cvs - summary of violation
      • add

        public void add​(Violations violations)
        Adds all violations from the given object to this one.
        violations - violations to add