package com.flipkart.foxtrot.sql.responseprocessors.model; public class FieldHeader { private String name; private int maxLength; public FieldHeader() { } public FieldHeader(String name, int maxLength) { this.name = name; this.maxLength = maxLength; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getMaxLength() { return maxLength; } public void setMaxLength(int maxLength) { this.maxLength = maxLength; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FieldHeader that = (FieldHeader) o; if (!name.equals(that.name)) return false; return true; } @Override public int hashCode() { return name.hashCode(); } }