ElasticAttribute implements Serializable, Comparable<ElasticAttribute> { @Override public int hashCode() { return Objects.hash(name, type, use, defaultGeometry, srid, dateFormat, useShortName, geometryType, analyzed, stored, nested, order, customName); } ElasticAttribute(String name);  ElasticAttribute(ElasticAttribute other); String getName(); String getShortName(); void setShortName(String shortName); Boolean getUseShortName(); void setUseShortName(Boolean useShortName); Class<?> getType(); void setType(Class<?> type); ElasticGeometryType getGeometryType(); void setGeometryType(ElasticGeometryType geometryType); Boolean isUse(); void setUse(Boolean use); Boolean isDefaultGeometry(); void setDefaultGeometry(Boolean defaultGeometry); Integer getSrid(); void setSrid(Integer srid); String getDateFormat(); void setDateFormat(String dateFormat); Boolean getAnalyzed(); void setAnalyzed(Boolean analyzed); boolean isStored(); void setStored(boolean stored); boolean isNested(); void setNested(boolean nested); void setOrder(Integer order); Integer getOrder(); void setCustomName(String name); String getCustomName(); String getDisplayName(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(@SuppressWarnings("NullableProblems") ElasticAttribute o);  }
@Test public void testHashCode() { assertEquals(attr.hashCode(), (new ElasticAttribute("theName")).hashCode()); assertTrue(attr.hashCode()!=(new ElasticAttribute("name")).hashCode()); }