Class StackTopMatcher<E>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Stack.StackTop<E>>
org.dmfs.jems2.hamcrest.matchers.stack.StackTopMatcher<E>
- All Implemented Interfaces:
org.hamcrest.Matcher<org.dmfs.jems2.Stack.StackTop<E>>,org.hamcrest.SelfDescribing
public final class StackTopMatcher<E>
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Stack.StackTop<E>>
A
Matcher which matches Stack.StackTops.-
Constructor Summary
ConstructorsConstructorDescriptionStackTopMatcher(org.hamcrest.Matcher<E> matcher, org.hamcrest.Matcher<org.dmfs.jems2.Stack<E>> bottomMatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(org.dmfs.jems2.Stack.StackTop<E> item, org.hamcrest.Description mismatchDescription) static <E> org.hamcrest.Matcher<org.dmfs.jems2.Stack.StackTop<E>>stackTop(org.hamcrest.Matcher<E> matcher, org.hamcrest.Matcher<org.dmfs.jems2.Stack<E>> bottomMatcher) 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
-
StackTopMatcher
-
-
Method Details
-
stackTop
public static <E> org.hamcrest.Matcher<org.dmfs.jems2.Stack.StackTop<E>> stackTop(org.hamcrest.Matcher<E> matcher, org.hamcrest.Matcher<org.dmfs.jems2.Stack<E>> bottomMatcher) -
matchesSafely
protected boolean matchesSafely(org.dmfs.jems2.Stack.StackTop<E> item, org.hamcrest.Description mismatchDescription) - Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Stack.StackTop<E>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-