Class ConditionEvents

  • All Implemented Interfaces:
    java.lang.Iterable<ConditionEvent>

    public final class ConditionEvents
    extends java.lang.Object
    implements java.lang.Iterable<ConditionEvent>
    • Constructor Detail

      • ConditionEvents

        public ConditionEvents()
    • Method Detail

      • getViolating

        public java.util.Collection<ConditionEvent> getViolating()
      • getAllowed

        public java.util.Collection<ConditionEvent> getAllowed()
      • containViolation

        public boolean containViolation()
      • isEmpty

        public boolean isEmpty()
      • describeFailuresTo

        public void describeFailuresTo​(CollectsLines messages)
      • handleViolations

        public void handleViolations​(ViolationHandler<?> violationHandler)
        Passes violations to the supplied ViolationHandler. The passed violations will automatically be filtered by the reified type of the given ViolationHandler. That is, if a ViolationHandler<SomeClass> is passed, only violations by objects assignable to SomeClass will be reported. The term 'reified' means, that the type parameter was not erased, i.e. ArchUnit can still determine the actual type parameter of the passed violation handler, otherwise the upper bound, in extreme cases Object, will be used (i.e. all violations will be passed).
        Parameters:
        violationHandler - The violation handler that is supposed to handle all violations matching the respective type parameter
      • toString

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