package org.ambraproject.wombat.model;

import java.util.List;
import java.util.Map;

public class SearchFilterItem {

  String displayName;
  float numberOfHits;
  String filterParamName;
  String filterValue;
  Map<String, List<String>> filteredResultsParameters;

  public SearchFilterItem(String displayName, float numberOfHits, String filterParamName,
      String filterValue, Map<String, List<String>> filteredResultsParameters) {
    this.displayName = displayName;
    this.numberOfHits = numberOfHits;
    this.filterParamName = filterParamName;
    this.filterValue = filterValue;
    this.filteredResultsParameters = filteredResultsParameters;
  }

  public String getDisplayName() {
    return displayName;
  }

  public float getNumberOfHits() {
    return numberOfHits;
  }

  public String getFilterParamName() {
    return filterParamName;
  }

  public String getFilterValue() {
    return filterValue;
  }

  public Map<String, List<String>> getFilteredResultsParameters() {
    return filteredResultsParameters;
  }
}

@@ -114,16 +114,30 @@
 em %7B%0A%0A  
+private final 
 String d
@@ -150,16 +150,30 @@
 Name;%0A  
+private final 
 float nu
@@ -182,24 +182,38 @@
 erOfHits;%0A  
+private final 
 String filte
@@ -226,16 +226,30 @@
 Name;%0A  
+private final 
 String f
@@ -262,16 +262,30 @@
 alue;%0A  
+private final 
 Map%3CStri
@@ -1095,14 +1095,1337 @@
 meters;%0A
-
   %7D%0A
+%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    if (this == o) return true;%0A    if (!(o instanceof SearchFilterItem)) return false;%0A%0A    SearchFilterItem that = (SearchFilterItem) o;%0A%0A    if (Float.compare(that.numberOfHits, numberOfHits) != 0) return false;%0A    if (displayName != null ? !displayName.equals(that.displayName) : that.displayName != null) return false;%0A    if (filterParamName != null ? !filterParamName.equals(that.filterParamName) : that.filterParamName != null) %7B%0A      return false;%0A    %7D%0A    if (filterValue != null ? !filterValue.equals(that.filterValue) : that.filterValue != null) return false;%0A    if (filteredResultsParameters != null ? !filteredResultsParameters.equals(that.filteredResultsParameters) : that.filteredResultsParameters != null) %7B%0A      return false;%0A    %7D%0A%0A    return true;%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    int result = displayName != null ? displayName.hashCode() : 0;%0A    result = 31 * result + (numberOfHits != +0.0f ? Float.floatToIntBits(numberOfHits) : 0);%0A    result = 31 * result + (filterParamName != null ? filterParamName.hashCode() : 0);%0A    result = 31 * result + (filterValue != null ? filterValue.hashCode() : 0);%0A    result = 31 * result + (filteredResultsParameters != null ? filteredResultsParameters.hashCode() : 0);%0A    return result;%0A  %7D%0A%0A
 %7D%0A

Define equals and hashCode for SearchFilterItem