class ShouldHaveSameDimensionsAs extends BasicErrorMessageFactory {

  /**
   * Creates a new <code>{@link ShouldHaveSameDimensionsAs}</code>.
   * @param actual the actual value in the failed assertion.
   * @param expected the expected value in the failed assertion.
   * @param actualSize the size of {@code actual}.
   * @param expectedSize the expected size.
   * @return the created {@code ErrorMessageFactory}.
   */
  public static ErrorMessageFactory shouldHaveSameDimensionsAs(Object actual, Object expected, Object actualSize,
                                                               Object expectedSize) {
    return new ShouldHaveSameDimensionsAs(actual, expected, actualSize, expectedSize);
  }

  public static ErrorMessageFactory shouldHaveSameDimensionsAs(int rowIndex, int actualRowSize, int expectedRowSize,
                                                               Object actualRow, Object expectedRow, Object actual,
                                                               Object expected) {<FILL_FUNCTION_BODY>}

  private ShouldHaveSameDimensionsAs(Object actual, Object expected, Object actualSize, Object expectedSize) {
    // format the sizes in a standard way, otherwise if we use (for ex) an Hexadecimal representation
    // it will format sizes in hexadecimal while we only want actual to be formatted in hexadecimal
    super(format("%n"
                 + "Actual and expected should have same dimensions but actual and expected have different number of rows.%n"
                 + "Actual has %s rows while expected has %s.%n"
                 + "Actual was:%n"
                 + "  %s%n"
                 + "Expected was:%n"
                 + "  %s", actualSize, expectedSize, "%s", "%s"),
          actual, expected);
  }

  private ShouldHaveSameDimensionsAs(int rowIndex, int actualRowSize, int expectedRowSize, Object actualRow, Object expectedRow,
                                     Object actual, Object expected) {
    // format the sizes in a standard way, otherwise if we use (for ex) an Hexadecimal representation
    // it will format sizes in hexadecimal while we only want actual to be formatted in hexadecimal
    super(format("%n"
                 + "Actual and expected should have same dimensions but rows at index %d don't have the same size.%n"
                 + "Actual row size is %d while expected row size is %d%n"
                 + "Actual row was:%n"
                 + " %s%n"
                 + "Expected row was:%n"
                 + " %s%n"
                 + "Actual was:%n"
                 + " %s%n"
                 + "Expected was:%n"
                 + " %s",
                 rowIndex, actualRowSize, expectedRowSize, "%s", "%s", "%s", "%s"),
          actualRow, expectedRow, actual, expected);
  }
}

    return new ShouldHaveSameDimensionsAs(rowIndex, actualRowSize, expectedRowSize, actualRow, expectedRow, actual, expected);
  
<methods>public transient void <init>(java.lang.String, java.lang.Object[]) ,public java.lang.String create(org.assertj.core.description.Description, org.assertj.core.presentation.Representation) ,public java.lang.String create(org.assertj.core.description.Description) ,public java.lang.String create() ,public boolean equals(java.lang.Object) ,public int hashCode() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Object[] arguments,protected final non-sealed java.lang.String format,org.assertj.core.error.MessageFormatter formatter