Mismatch

public final class Mismatch<T extends Object> implements FilterResult<T>(source)

Represents a mismatching filter result.

Parameters

T

The type a Filter would return in case of a match

Constructors

Functions

Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final FilterResult<TNew> withResult<TOld extends Any, TNew extends Any>(TNew result)

If the current FilterResult is FilterResult.Match, change its result to the given one. Otherwise, return the original.