public class IsOneOf<T>
extends org.hamcrest.BaseMatcher<T>
| Modifier | Constructor and Description |
|---|---|
protected |
IsOneOf(Collection<T> expected) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
static <T> org.hamcrest.Matcher<T> |
isOneOf(Collection<T> expected) |
static <T> org.hamcrest.Matcher<T> |
isOneOf(T firstExpected,
T... others) |
boolean |
matches(Object item) |
protected IsOneOf(@Nonnull Collection<T> expected)
@Nonnull public static <T> org.hamcrest.Matcher<T> isOneOf(@Nonnull Collection<T> expected)
@Nonnull public static <T> org.hamcrest.Matcher<T> isOneOf(@Nonnull T firstExpected, @Nullable T... others)
public void describeTo(@Nonnull org.hamcrest.Description description)
Copyright © 2017 echocat. All rights reserved.