@Test public void testEquals() { assertEquals(new DataObject(), dataObject); assertNotEquals(new DataObject(), new Object()); }
@Override public boolean equals(Object o) { if (o instanceof DataObject) { DataObject other = (DataObject) o; return name.equals(other.name) && type.equals(other.type) && general.equals(other.general) && backgroundSet.equals(other.backgroundSet) && fontSet.equals(other.fontSet) && dimensionsSet.equals(other.dimensionsSet); } return false; }
DataObject extends BaseArtifacts { @Override public boolean equals(Object o) { if (o instanceof DataObject) { DataObject other = (DataObject) o; return name.equals(other.name) && type.equals(other.type) && general.equals(other.general) && backgroundSet.equals(other.backgroundSet) && fontSet.equals(other.fontSet) && dimensionsSet.equals(other.dimensionsSet); } return false; } }
DataObject extends BaseArtifacts { @Override public boolean equals(Object o) { if (o instanceof DataObject) { DataObject other = (DataObject) o; return name.equals(other.name) && type.equals(other.type) && general.equals(other.general) && backgroundSet.equals(other.backgroundSet) && fontSet.equals(other.fontSet) && dimensionsSet.equals(other.dimensionsSet); } return false; } DataObject();  DataObject(final @MapsTo("name") Name name,
                      final @MapsTo("type") DataObjectType type,
                      final @MapsTo("general") BPMNGeneralSet general,
                      final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                      final @MapsTo("fontSet") FontSet fontSet,
                      final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet); }
DataObject extends BaseArtifacts { @Override public boolean equals(Object o) { if (o instanceof DataObject) { DataObject other = (DataObject) o; return name.equals(other.name) && type.equals(other.type) && general.equals(other.general) && backgroundSet.equals(other.backgroundSet) && fontSet.equals(other.fontSet) && dimensionsSet.equals(other.dimensionsSet); } return false; } DataObject();  DataObject(final @MapsTo("name") Name name,
                      final @MapsTo("type") DataObjectType type,
                      final @MapsTo("general") BPMNGeneralSet general,
                      final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                      final @MapsTo("fontSet") FontSet fontSet,
                      final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet); Set<String> getLabels(); BPMNGeneralSet getGeneral(); void setGeneral(final BPMNGeneralSet general); Name getName(); void setName(Name name); DataObjectType getType(); void setType(DataObjectType type); @Override int hashCode(); @Override boolean equals(Object o); }
DataObject extends BaseArtifacts { @Override public boolean equals(Object o) { if (o instanceof DataObject) { DataObject other = (DataObject) o; return name.equals(other.name) && type.equals(other.type) && general.equals(other.general) && backgroundSet.equals(other.backgroundSet) && fontSet.equals(other.fontSet) && dimensionsSet.equals(other.dimensionsSet); } return false; } DataObject();  DataObject(final @MapsTo("name") Name name,
                      final @MapsTo("type") DataObjectType type,
                      final @MapsTo("general") BPMNGeneralSet general,
                      final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                      final @MapsTo("fontSet") FontSet fontSet,
                      final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet); Set<String> getLabels(); BPMNGeneralSet getGeneral(); void setGeneral(final BPMNGeneralSet general); Name getName(); void setName(Name name); DataObjectType getType(); void setType(DataObjectType type); @Override int hashCode(); @Override boolean equals(Object o);  }