Class ImpactedTroubleMatcher

java.lang.Object
com.tccc.kos.commons.core.service.trouble.matcher.ImpactedTroubleMatcher
All Implemented Interfaces:
TroubleMatcher

public class ImpactedTroubleMatcher extends Object implements TroubleMatcher
Matcher that returns true if any of the specified objects are in the impact list of a trouble.
Since:
1.0
Version:
2022-09-18
  • Constructor Details

    • ImpactedTroubleMatcher

      public ImpactedTroubleMatcher(Object... objs)
      Create a matcher that returns true if a trouble contains the specified object the impact list.
      Parameters:
      objs - the objects to check
  • Method Details

    • match

      public boolean match(Trouble trouble)
      Description copied from interface: TroubleMatcher
      Return true if the specified trouble matches the matcher logic.
      Specified by:
      match in interface TroubleMatcher
      Parameters:
      trouble - the trouble to check for a match