Class LinkedTroubleMatcher

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

public class LinkedTroubleMatcher extends Object implements TroubleMatcher
Matcher that returns true if any of the specified objects are in the link list of a trouble.
Since:
1.0
Version:
2023-09-28
  • Constructor Details

    • LinkedTroubleMatcher

      public LinkedTroubleMatcher(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