package ca.antonious.viewcelladapter;

import android.view.View;

import ca.antonious.viewcelladapter.viewcells.BaseViewHolder;
import ca.antonious.viewcelladapter.viewcells.GenericViewCell;

/**
 * Created by George on 2016-12-18.
 */

public class TestViewCell extends GenericViewCell<TestViewCell.ViewHolder, String> {
    public TestViewCell(String identifier) {
        super(identifier);
    }

    @Override
    public int getLayoutId() {
        return getModel().length();
    }

    @Override
    public int getItemId() {
        return getModel().length();
    }

    @Override
    public void bindViewCell(ViewHolder viewHolder) {

    }

    @Override
    public Class<ViewHolder> getViewHolderClass() {
        return ViewHolder.class;
    }

    public static class ViewHolder extends BaseViewHolder {
        public ViewHolder(View itemView) {
            super(itemView);
        }
    }

    @Override
    public String toString() {
        return String.format("[ViewCell: %s]", getModel());
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TestViewCell that = (TestViewCell) o;

        return getModel() != null ? getModel().equals(that.getModel()) : that.getModel() == null;
    }

    @Override
    public int hashCode() {
        return getModel() != null ? getModel().hashCode() : 0;
    }
}

@@ -315,16 +315,47 @@
 ring%3E %7B%0A
+    private int totalPerLine;%0A%0A
     publ
@@ -403,25 +403,166 @@
     
-super(identifier)
+this(identifier, 1);%0A    %7D%0A%0A    public TestViewCell(String identifier, int totalPerLine) %7B%0A        super(identifier);%0A        this.totalPerLine = totalPerLine
 ;%0A  
@@ -732,32 +732,117 @@
 ength();%0A    %7D%0A%0A
+    @Override%0A    public int getTotalPerLine() %7B%0A        return totalPerLine;%0A    %7D%0A%0A
     @Override%0A  

Upgrade TestViewCell to handle span counts