map

public Matcher<U> map<U>(Function<U, T> mapper)(source)

Returns a new matcher that maps the given mapper before matching with this matcher.

Return

the new matcher

Parameters

mapper

the mapper

<U>

the type of the object to match