ElasticAttribute implements Serializable, Comparable<ElasticAttribute> { @Override public boolean equals(Object obj) { boolean equal; if (obj == null || getClass() != obj.getClass()) { equal = false; } else { ElasticAttribute other = (ElasticAttribute) obj; equal = Objects.equals(name, other.name); equal &= Objects.equals(type, other.type); equal &= Objects.equals(use, other.use); equal &= Objects.equals(defaultGeometry, other.defaultGeometry); equal &= Objects.equals(srid, other.srid); equal &= Objects.equals(dateFormat, other.dateFormat); equal &= Objects.equals(useShortName, other.useShortName); equal &= Objects.equals(geometryType, other.geometryType); equal &= Objects.equals(analyzed, other.analyzed); equal &= Objects.equals(stored, other.stored); equal &= Objects.equals(nested, other.nested); equal &= Objects.equals(order, other.order); equal &= Objects.equals(customName, other.customName); } return equal; } 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 testEquals() { assertEquals(attr, new ElasticAttribute("theName")); assertTrue(!attr.equals(new ElasticAttribute("name"))); }