Class Match<T>
java.lang.Object
org.apache.activemq.artemis.core.settings.impl.Match<T>
a Match is the holder for the match string and the object to hold against it.
-
Constructor Summary
ConstructorsConstructorDescriptionMatch(String match, T value, WildcardConfiguration wildcardConfiguration) Match(String match, T value, WildcardConfiguration wildcardConfiguration, boolean literal) -
Method Summary
Modifier and TypeMethodDescriptionstatic PatterncreatePattern(String match, WildcardConfiguration wildcardConfiguration, boolean direct) booleanfinal StringgetMatch()final Patternfinal TgetValue()inthashCode()final booleantoString()static voidverify(String match, WildcardConfiguration wildcardConfiguration) utility method to verify consistency of match
-
Constructor Details
-
Match
-
Match
-
-
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
-
getPattern
-
getValue
-
isLiteral
public final boolean isLiteral() -
equals
-
hashCode
public int hashCode() -
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
-