java.lang.Object
org.apache.activemq.artemis.core.settings.impl.Match<T>

public class Match<T> extends Object
a Match is the holder for the match string and the object to hold against it.
  • Constructor Details

  • Method Details

    • createPattern

      public static Pattern createPattern(String match, WildcardConfiguration wildcardConfiguration, boolean direct)
      Parameters:
      direct - setting true is useful for use-cases where you just want to know whether a message sent to a particular address would match the pattern
    • getMatch

      public final String getMatch()
    • getPattern

      public final Pattern getPattern()
    • getValue

      public final T getValue()
    • isLiteral

      public final boolean isLiteral()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • verify

      public static void verify(String match, WildcardConfiguration wildcardConfiguration) throws IllegalArgumentException
      utility method to verify consistency of match
      Parameters:
      match - the match to validate
      Throws:
      IllegalArgumentException - if a match isn't valid
    • toString

      public String toString()
      Overrides:
      toString in class Object