Uses of Interface
org.refcodes.matcher.Matcher
-
Uses of Matcher in org.refcodes.matcher
Subinterfaces of Matcher in org.refcodes.matcherModifier and TypeInterfaceDescriptioninterface
AWildcardMatcher
is aMatcher
providing additional means to work with the wildcards and their wildcard substitutes in case of a match as ofMatchable.isMatching(Object)
.Classes in org.refcodes.matcher that implement MatcherModifier and TypeClassDescriptionclass
TheAbstractMatcheeMatcher
is composed of multipleMatcher
instances queried upon match requests as ofMatchable.isMatching(Object)
.class
TheAbstractMatcher
provides a base functionality forMatcher
implementations.class
TheAbstractMatcherComposite
is composed of multipleMatcher
instances queried upon match requests as ofMatchable.isMatching(Object)
.class
TheAbstractWildcardMatcher
provides a base functionality forMatcher
implementations.class
AndMatcher<M>
class
AnyMatcher<M>
An ANY implementation of aMatcher
which always returnstrue
.class
An EQUAL WITHMatcher
, comparing its matchee with the matchee provided to theEqualWithMatcher.isMatching(Object)
method for equality.class
GreaterOrEqualThanMatcher<M extends Comparable<M>>
A GREATER OR EQUAL THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.class
GreaterThanMatcher<M extends Comparable<M>>
A GREATER THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.class
A IS ASSIGNABLE FROM implementation of aMatcher
by type.class
LessOrEqualThanMatcher<M extends Comparable<M>>
A LESS OR EQUAL THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.class
LessThanMatcher<M extends Comparable<M>>
A LESS THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.class
NoneMatcher<M>
A NONE implementation of aMatcher
which always returnsfalse
.class
A NOT EQUAL WITHMatcher
, comparing its matchee with the matchee provided to theNotEqualWithMatcher.isMatching(Object)
method for equality.class
NotMatcher<M>
class
OrMatcher<M>
class
ThePathMatcher
providesWildcardMatcher
functionality for matching paths: ThePathMatcher
matches its ANT like path pattern against the path provided to thePathMatcher.isMatching(String)
and the like methods.class
The REGEXPRegExpMatcher
providesWildcardMatcher
functionality for regular expressionPattern
matching.Fields in org.refcodes.matcher declared as MatcherMethods in org.refcodes.matcher that return MatcherModifier and TypeMethodDescriptionstatic <M> Matcher<M>
static <M> Matcher<M>
MatcherSugar.any()
Import static ANY implementation of aMatcher
which always returnstrue
.static <M> Matcher<M>
MatcherSugar.equalWith
(M aMatchee) Import static EQUAL WITHMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method for equality.static <M extends Comparable<M>>
Matcher<M>MatcherSugar.greaterOrEqualThan
(M aMatchee) Import static GREATER OR EQUAL THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.static <M extends Comparable<M>>
Matcher<M>MatcherSugar.greaterThan
(M aMatchee) Import static GREATER THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.static <M> Matcher<M>
MatcherSugar.isAssignableFrom
(Class<?> aMatcheeType) Static import IS ASSIGNABLE FROMMatcher
using the type of the matchees being the criteria to determine a match.static <M extends Comparable<M>>
Matcher<M>MatcherSugar.lessOrEqualThan
(M aMatchee) Import static LESS OR EQUAL THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.static <M extends Comparable<M>>
Matcher<M>MatcherSugar.lessThan
(M aMatchee) Import static LESS THANMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method using theComparable.compareTo(Object)
method to be implemented by the matchees.static <M> Matcher<M>
MatcherSugar.none()
Import static NONE implementation of aMatcher
which always returnsfalse
.static <M> Matcher<M>
Import static NOTMatcher
whoseMatchable.isMatching(Object)
method inverts (NOT) theMatchable.isMatching(Object)
result of the encapsulatedMatcher
.static <M> Matcher<M>
MatcherSugar.notEqualWith
(M aMatchee) Import static NOT EQUAL WITHMatcher
, comparing its matchee with the matchee provided to theMatchable.isMatching(Object)
method for equality.static <M> Matcher<M>
Methods in org.refcodes.matcher with parameters of type MatcherModifier and TypeMethodDescriptionstatic <M> Matcher<M>
static <M> Matcher<M>
Import static NOTMatcher
whoseMatchable.isMatching(Object)
method inverts (NOT) theMatchable.isMatching(Object)
result of the encapsulatedMatcher
.static <M> Matcher<M>
Constructors in org.refcodes.matcher with parameters of type MatcherModifierConstructorDescriptionAbstractMatcherComposite
(String aAlias, String aDescription, Matcher<M>... aMatchers) Constructs anAbstractMatcherComposite
with the given description and matchers.AndMatcher
(Matcher<M>... aMatchers) NotMatcher
(Matcher<M> aMatcher) Constructs a NOTMatcher
whoseNotMatcher.isMatching(Object)
method inverts (NOT) theNotMatcher.isMatching(Object)
result of the encapsulatedMatcher
.