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

Functions

Link copied to clipboard
public int compareTo(Match<T> other)
Link copied to clipboard
public boolean isNegative()
Returns if this match is a negative 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.
Link copied to clipboard
public abstract boolean matched()
Returns if this match is a positive match.
Link copied to clipboard
public Match<T> negate()
Returns the opposite match.
Link copied to clipboard
public static Match<T> negative<T>(T object)
Returns a negative match with the given object.
Link copied to clipboard
public abstract T object()
Returns the matched object.
Link copied to clipboard
public static Match<T> positive<T>(T object)
Returns a positive match with the given object.