Modifier | Constructor and Description |
---|---|
protected |
MatcherSugar() |
Modifier and Type | Method and Description |
---|---|
static <M> Matcher<M> |
and(Matcher<M>... aMatchers)
|
static <M> Matcher<M> |
any()
Import static ANY implementation of a
Matcher which always
returns true . |
static <M> Matcher<M> |
equalWith(M aMatchee)
Import static EQUAL WITH
Matcher , comparing its matchee with the
matchee provided to the #isMatching(Object) method for equality. |
static <M extends Comparable<M>> |
greaterOrEqualThan(M aMatchee)
Import static GREATER OR EQUAL THAN
Matcher , comparing its
matchee with the matchee provided to the #isMatching(Object)
method using the Comparable.compareTo(Object) method to be
implemented by the matchees. |
static <M extends Comparable<M>> |
greaterThan(M aMatchee)
Import static GREATER THAN
Matcher , comparing its matchee with
the matchee provided to the #isMatching(Object) method using the
Comparable.compareTo(Object) method to be implemented by the
matchees. |
static <M> Matcher<M> |
isAssignableFrom(Class<?> aMatcheeType)
Static import IS ASSIGNABLE FROM
Matcher using the type of the
matchees being the criteria to determine a match. |
static <M extends Comparable<M>> |
lessOrEqualThan(M aMatchee)
Import static LESS OR EQUAL THAN
Matcher , comparing its matchee
with the matchee provided to the #isMatching(Object) method using
the Comparable.compareTo(Object) method to be implemented by the
matchees. |
static <M extends Comparable<M>> |
lessThan(M aMatchee)
Import static LESS THAN
Matcher , comparing its matchee with the
matchee provided to the #isMatching(Object) method using the
Comparable.compareTo(Object) method to be implemented by the
matchees. |
static <M> Matcher<M> |
none()
Import static NONE implementation of a
Matcher which always
returns false . |
static <M> Matcher<M> |
not(Matcher<M> aMatcher)
|
static <M> Matcher<M> |
notEqualWith(M aMatchee)
Import static NOT EQUAL WITH
Matcher , comparing its matchee with
the matchee provided to the #isMatching(Object) method for
equality. |
static <M> Matcher<M> |
or(Matcher<M>... aMatchers)
|
public static <M> Matcher<M> isAssignableFrom(Class<?> aMatcheeType)
Matcher
using the type of the
matchees being the criteria to determine a match.M
- The type of the matchee to be matchedaMatcheeType
- The type of the matchee to match.Matcher
by type.@SafeVarargs public static <M> Matcher<M> or(Matcher<M>... aMatchers)
@SafeVarargs public static <M> Matcher<M> and(Matcher<M>... aMatchers)
public static <M> Matcher<M> any()
Matcher
which always
returns true
.M
- The matchee type.Matcher
.public static <M> Matcher<M> none()
Matcher
which always
returns false
.M
- The matchee type.Matcher
.public static <M> Matcher<M> equalWith(M aMatchee)
Matcher
, comparing its matchee with the
matchee provided to the #isMatching(Object)
method for equality.M
- The matchee type.aMatchee
- The matchee with which to match.Matcher
.public static <M> Matcher<M> notEqualWith(M aMatchee)
Matcher
, comparing its matchee with
the matchee provided to the #isMatching(Object)
method for
equality.M
- The matchee type.aMatchee
- The matchee with which to match.Matcher
.public static <M extends Comparable<M>> Matcher<M> greaterOrEqualThan(M aMatchee)
Matcher
, comparing its
matchee with the matchee provided to the #isMatching(Object)
method using the Comparable.compareTo(Object)
method to be
implemented by the matchees.M
- The matchee type.aMatchee
- The matchee with which to match.Matcher
.public static <M extends Comparable<M>> Matcher<M> greaterThan(M aMatchee)
Matcher
, comparing its matchee with
the matchee provided to the #isMatching(Object)
method using the
Comparable.compareTo(Object)
method to be implemented by the
matchees.M
- The matchee type.aMatchee
- The matchee with which to match.Matcher
.public static <M extends Comparable<M>> Matcher<M> lessOrEqualThan(M aMatchee)
Matcher
, comparing its matchee
with the matchee provided to the #isMatching(Object)
method using
the Comparable.compareTo(Object)
method to be implemented by the
matchees.M
- The matchee type.aMatchee
- The matchee with which to match.Matcher
.public static <M extends Comparable<M>> Matcher<M> lessThan(M aMatchee)
Matcher
, comparing its matchee with the
matchee provided to the #isMatching(Object)
method using the
Comparable.compareTo(Object)
method to be implemented by the
matchees.M
- The matchee type.aMatchee
- The matchee with which to match.Matcher
.Copyright © 2017. All rights reserved.