toggle menu
Algoutils
0.9.1-SNAPSHOT
jvm
switch theme
search in API
algoutils-tutor
/
org.tudalgo.algoutils.tutor.general.match
/
Match
Match
public
interface
Match
<
T
>
implements
Comparable
<
T
>
(
source
)
A match represents a match of an
object matcher
.
Parameters
<T>
the type of the matched object
Members
Functions
compare
To
Link copied to clipboard
public
int
compareTo
(
Match
<
T
>
other
)
is
Negative
Link copied to clipboard
public
boolean
isNegative
(
)
Returns if this match is a negative match.
match
Link copied to clipboard
public
static
Match
<
T
>
match
<
T
>
(
T
object
,
boolean positive
)
Returns a simple match with the given object and binary state.
matched
Link copied to clipboard
public
abstract
boolean
matched
(
)
Returns if this match is a positive match.
negate
Link copied to clipboard
public
Match
<
T
>
negate
(
)
Returns the opposite match.
negative
Link copied to clipboard
public
static
Match
<
T
>
negative
<
T
>
(
T
object
)
Returns a negative match with the given object.
object
Link copied to clipboard
public
abstract
T
object
(
)
Returns the matched object.
positive
Link copied to clipboard
public
static
Match
<
T
>
positive
<
T
>
(
T
object
)
Returns a positive match with the given object.