public class HasSize<T>
extends org.hamcrest.BaseMatcher<T>
| Modifier | Constructor and Description |
|---|---|
protected |
HasSize(long expectedSize) |
| 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> |
hasLength(long size) |
static <T> org.hamcrest.Matcher<T> |
hasLengthOf(long size) |
static <T> org.hamcrest.Matcher<T> |
hasSize(long size) |
static <T> org.hamcrest.Matcher<T> |
hasSizeOf(long size) |
boolean |
matches(Object item) |
protected HasSize(@Nonnegative long expectedSize)
@Nonnull public static <T> org.hamcrest.Matcher<T> hasSize(@Nonnegative long size)
@Nonnull public static <T> org.hamcrest.Matcher<T> hasSizeOf(@Nonnegative long size)
@Nonnull public static <T> org.hamcrest.Matcher<T> hasLength(@Nonnegative long size)
@Nonnull public static <T> org.hamcrest.Matcher<T> hasLengthOf(@Nonnegative long size)
public void describeTo(@Nonnull org.hamcrest.Description description)
Copyright © 2017 echocat. All rights reserved.