public class Matchers extends Object
| Modifier and Type | Method and Description |
|---|---|
static OptionalPresentMatcher<Object> |
absent() |
static <T> StreamMatcher<T> |
allMatch(Predicate<T> predicate) |
static <T> StreamMatcher<T> |
anyMatch(Predicate<T> predicate) |
static <T> OptionalValueMatcher<T> |
hasValue(T value) |
static <T> PredicateMatcher<T> |
matches(Predicate<T> function) |
static <T> PredicateMatcher<T> |
matches(Predicate<T> function,
String description) |
static OptionalPresentMatcher<Object> |
present() |
public static OptionalPresentMatcher<Object> absent()
public static OptionalPresentMatcher<Object> present()
public static <T> OptionalValueMatcher<T> hasValue(T value)
public static <T> PredicateMatcher<T> matches(Predicate<T> function, String description)
public static <T> PredicateMatcher<T> matches(Predicate<T> function)
public static <T> StreamMatcher<T> allMatch(Predicate<T> predicate)
public static <T> StreamMatcher<T> anyMatch(Predicate<T> predicate)
Copyright © 2018. All rights reserved.