| Modifier and Type | Field and Description |
|---|---|
| private final boolean | fallback
The fallback value in case of an exception. |
| private final ElementMatcher | matcher
The delegate matcher that might throw an exception. |
| Access | Constructor and Description |
|---|---|
| public | FailSafeMatcher(ElementMatcher<? super T>
The delegate matcher that might throw an exception. matcher, boolean The fallback value in case of an exception. fallback)Creates a new fail-safe element matcher. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matches(T
The instance to be matched or target)null.Implements org. |
| public String |
| fallback | back to summary |
|---|---|
| private final boolean fallback The fallback value in case of an exception. | |
| matcher | back to summary |
|---|---|
| private final ElementMatcher<? super T> matcher The delegate matcher that might throw an exception. | |
| FailSafeMatcher | back to summary |
|---|---|
| public FailSafeMatcher(ElementMatcher<? super T> matcher, boolean fallback) Creates a new fail-safe element matcher.
| |
| matches | back to summary |
|---|---|
| public boolean matches(T target) Implements org. Doc from org. Matches a target against this element matcher.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |