Returns a predicate that evaluates to true if the object being tested equals() the given target or both are null.
(@Nullable T target)
| 161 | * the given target or both are null. |
| 162 | */ |
| 163 | public static <T> Predicate<T> equalTo(@Nullable T target) { |
| 164 | return (target == null) ? Predicates.<T>isNull() : new IsEqualToPredicate<T>(target); |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * Returns a predicate that evaluates to {@code true} if the object being tested is an instance of |
no test coverage detected