public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields,
      List<Object> expectedValues, List<String> acceptedFields) {
    """
	Creates a new </code>{@link ShouldBeLenientEqualByAccepting}</code>.
	@param actual the actual value in the failed assertion.
	@param rejectedFields fields name not matching
	@param expectedValues fields value not matching
	@param acceptedFields fields on which is based the lenient equality
	@return the created {@code ErrorMessageFactory}.
    """
    if (rejectedFields.size() == 1) {
      return new ShouldBeLenientEqualByAccepting(actual, rejectedFields.get(0), expectedValues.get(0), acceptedFields);
    } else {
      return new ShouldBeLenientEqualByAccepting(actual, rejectedFields, expectedValues, acceptedFields);
    }
  }
public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields,
      List<Object> expectedValues, List<String> acceptedFields) {
    if (rejectedFields.size() == 1) {
      return new ShouldBeLenientEqualByAccepting(actual, rejectedFields.get(0), expectedValues.get(0), acceptedFields);
    } else {
      return new ShouldBeLenientEqualByAccepting(actual, rejectedFields, expectedValues, acceptedFields);
    }
  }
public static < E > ErrorMessageFactory shouldBeLenientEqualByAccepting ( Object actual , List < String > rejectedFields , List < Object > expectedValues , List < String > acceptedFields ) { if ( rejectedFields . size ( ) == 1 ) { return new ShouldBeLenientEqualByAccepting ( actual , rejectedFields . get ( 0 ) , expectedValues . get ( 0 ) , acceptedFields ) ; } else { return new ShouldBeLenientEqualByAccepting ( actual , rejectedFields , expectedValues , acceptedFields ) ; } }
Creates a new </code>{@link ShouldBeLenientEqualByAccepting}</code>.
@param actual the actual value in the failed assertion.
@param rejectedFields fields name not matching
@param expectedValues fields value not matching
@param acceptedFields fields on which is based the lenient equality
@return the created {@code ErrorMessageFactory}.
Creates a new < / code > {