org.eclipse.swtbot.swt.finder.matchers
Class AllOf<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AllOf<T>
- All Implemented Interfaces:
- org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
public class AllOf<T>
- extends AbstractMatcher<T>
A matcher that evaluates to true if and only if all the matchers evaluate to true.
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
|
Method Summary |
static
<T extends Widget>
org.hamcrest.Matcher<T> |
|
allOf(Iterable<org.hamcrest.Matcher<? extends T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
static
<T extends Widget>
org.hamcrest.Matcher<T> |
|
allOf(org.hamcrest.Matcher<? extends T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
void |
describeTo(org.hamcrest.Description description)
|
protected boolean |
doMatch(Object o)
Subclasses must override, this is the actual method that does the matching |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
doMatch
protected boolean doMatch(Object o)
- Description copied from class:
AbstractMatcher
- Subclasses must override, this is the actual method that does the matching
- Specified by:
doMatch in class AbstractMatcher<T>
- Parameters:
o - the item to match.
- Returns:
true if the item matches, false otherwise.
describeTo
public void describeTo(org.hamcrest.Description description)
allOf
public static <T extends Widget> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? extends T>... matchers)
- Evaluates to true only if ALL of the passed in matchers evaluate to true.
- Returns:
- a matcher.
allOf
public static <T extends Widget> org.hamcrest.Matcher<T> allOf(Iterable<org.hamcrest.Matcher<? extends T>> matchers)
- Evaluates to true only if ALL of the passed in matchers evaluate to true.
- Returns:
- a matcher.