private static <T> List<PropertyMatcher> propertyMatchersFor(T bean, PropertyDescriptor[] descriptors, List<String> ignoredFields) { List<PropertyMatcher> result = new ArrayList<>(descriptors.length); for (PropertyDescriptor propertyDescriptor : descriptors) { if (isIgnored(ignoredFields, propertyDescriptor)) { result.add(new PropertyMatcher(propertyDescriptor, bean)); } } return result; }
private boolean hasMatchingValues(Object actual, Description mismatchDescription) { for (PropertyMatcher propertyMatcher : propertyMatchers) { if (!propertyMatcher.matches(actual)) { propertyMatcher.describeMismatch(actual, mismatchDescription); return false; } } return true; }
private static <T> List<PropertyMatcher> propertyMatchersFor(T bean, PropertyDescriptor[] descriptors, List<String> ignoredFields) { List<PropertyMatcher> result = new ArrayList<>(descriptors.length); for (PropertyDescriptor propertyDescriptor : descriptors) { if (isIgnored(ignoredFields, propertyDescriptor)) { result.add(new PropertyMatcher(propertyDescriptor, bean)); } } return result; }
private static <T> List<PropertyMatcher> propertyMatchersFor(T bean, PropertyDescriptor[] descriptors) { List<PropertyMatcher> result = new ArrayList<PropertyMatcher>(descriptors.length); for (PropertyDescriptor propertyDescriptor : descriptors) { result.add(new PropertyMatcher(propertyDescriptor, bean)); } return result; }
private boolean hasMatchingValues(T item, Description mismatchDescription) { for (PropertyMatcher propertyMatcher : propertyMatchers) { if (!propertyMatcher.matches(item)) { propertyMatcher.describeMismatch(item, mismatchDescription); return false; } } return true; }
private boolean hasMatchingValues(Object actual, Description mismatchDescription) { for (PropertyMatcher propertyMatcher : propertyMatchers) { if (!propertyMatcher.matches(actual)) { propertyMatcher.describeMismatch(actual, mismatchDescription); return false; } } return true; }
private boolean hasMatchingValues(T item, Description mismatchDescription) { for (PropertyMatcher propertyMatcher : propertyMatchers) { if (!propertyMatcher.matches(item)) { propertyMatcher.describeMismatch(item, mismatchDescription); return false; } } return true; }
private static <T> List<PropertyMatcher> propertyMatchersFor(T bean, PropertyDescriptor[] descriptors) { List<PropertyMatcher> result = new ArrayList<PropertyMatcher>(descriptors.length); for (PropertyDescriptor propertyDescriptor : descriptors) { result.add(new PropertyMatcher(propertyDescriptor, bean)); } return result; }