Class AbsentMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Optional<? extends T>>
org.dmfs.jems2.hamcrest.matchers.optional.AbsentMatcher<T>
- All Implemented Interfaces:
org.hamcrest.Matcher<org.dmfs.jems2.Optional<? extends T>>,org.hamcrest.SelfDescribing
public final class AbsentMatcher<T>
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Optional<? extends T>>
Matcher of Optional that matches when the tested value is absent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AbsentMatcher<T>absent()Creates a matcher that matches when the tested value is absent.voiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(org.dmfs.jems2.Optional<? extends T> item, org.hamcrest.Description mismatchDescription) Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
AbsentMatcher
public AbsentMatcher()
-
-
Method Details
-
absent
Creates a matcher that matches when the tested value is absent. -
matchesSafely
protected boolean matchesSafely(org.dmfs.jems2.Optional<? extends T> item, org.hamcrest.Description mismatchDescription) - Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Optional<? extends T>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-