Class Match<T>
- 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 Summary
Constructors Constructor Description Match(String match, T value, WildcardConfiguration wildcardConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatterncreatePattern(String match, WildcardConfiguration wildcardConfiguration, boolean direct)booleanequals(Object o)StringgetMatch()PatterngetPattern()TgetValue()inthashCode()StringtoString()static voidverify(String match, WildcardConfiguration wildcardConfiguration)utility method to verify consistency of match
-
-
-
Constructor Detail
-
Match
public Match(String match, T value, WildcardConfiguration wildcardConfiguration)
-
-
Method Detail
-
createPattern
public static Pattern createPattern(String match, WildcardConfiguration wildcardConfiguration, boolean direct)
- Parameters:
match-wildcardConfiguration-direct- setting true is useful for use-cases where you just want to know whether or not a message sent to a particular address would match the pattern- Returns:
-
getMatch
public final String getMatch()
-
getPattern
public final Pattern getPattern()
-
getValue
public final T getValue()
-
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
-
-