- All Implemented Interfaces:
org.saynotobugs.confidence.Quality<T>
public final class Matches<T>
extends Object
implements org.saynotobugs.confidence.Quality<T>
A Quality of T that delegates to a Hamcrest Matcher.
-
Constructor Summary
Constructors
Matches(org.hamcrest.Matcher<? super T> delegate)
-
Method Summary
org.saynotobugs.confidence.Assessment
org.saynotobugs.confidence.Description
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Matches
public Matches(org.hamcrest.Matcher<? super T> delegate)
-
Method Details
-
assessmentOf
public org.saynotobugs.confidence.Assessment assessmentOf(T candidate)
- Specified by:
assessmentOf in interface org.saynotobugs.confidence.Quality<T>
-
description
public org.saynotobugs.confidence.Description description()
- Specified by:
description in interface org.saynotobugs.confidence.Quality<T>