@Test public void testEqualsWhenXmlDiagramIsDifferent() { final KogitoDiagramResourceImpl projectDiagramResource1 = new KogitoDiagramResourceImpl("<xml>"); final KogitoDiagramResourceImpl projectDiagramResource2 = new KogitoDiagramResourceImpl("<xml />"); assertNotEquals(projectDiagramResource1, projectDiagramResource2); assertNotEquals(projectDiagramResource1.hashCode(), projectDiagramResource2.hashCode()); }
@Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(projectDiagram), Objects.hashCode(xmlDiagram), Objects.hashCode(type)); }
KogitoDiagramResourceImpl implements KogitoDiagramResource<Diagram> { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(projectDiagram), Objects.hashCode(xmlDiagram), Objects.hashCode(type)); } }
KogitoDiagramResourceImpl implements KogitoDiagramResource<Diagram> { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(projectDiagram), Objects.hashCode(xmlDiagram), Objects.hashCode(type)); } KogitoDiagramResourceImpl(final @MapsTo("projectDiagram") Diagram projectDiagram,
                                     final @MapsTo("xmlDiagram") String xmlDiagram,
                                     final @MapsTo("type") DiagramType type);  KogitoDiagramResourceImpl(final Diagram projectDiagram);  KogitoDiagramResourceImpl(final String xmlDiagram); }
KogitoDiagramResourceImpl implements KogitoDiagramResource<Diagram> { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(projectDiagram), Objects.hashCode(xmlDiagram), Objects.hashCode(type)); } KogitoDiagramResourceImpl(final @MapsTo("projectDiagram") Diagram projectDiagram,
                                     final @MapsTo("xmlDiagram") String xmlDiagram,
                                     final @MapsTo("type") DiagramType type);  KogitoDiagramResourceImpl(final Diagram projectDiagram);  KogitoDiagramResourceImpl(final String xmlDiagram); @Override boolean equals(final Object o); @Override int hashCode(); @Override Optional<Diagram> projectDiagram(); @Override Optional<String> xmlDiagram(); @Override DiagramType getType(); }
KogitoDiagramResourceImpl implements KogitoDiagramResource<Diagram> { @Override public int hashCode() { return HashUtil.combineHashCodes(Objects.hashCode(projectDiagram), Objects.hashCode(xmlDiagram), Objects.hashCode(type)); } KogitoDiagramResourceImpl(final @MapsTo("projectDiagram") Diagram projectDiagram,
                                     final @MapsTo("xmlDiagram") String xmlDiagram,
                                     final @MapsTo("type") DiagramType type);  KogitoDiagramResourceImpl(final Diagram projectDiagram);  KogitoDiagramResourceImpl(final String xmlDiagram); @Override boolean equals(final Object o); @Override int hashCode(); @Override Optional<Diagram> projectDiagram(); @Override Optional<String> xmlDiagram(); @Override DiagramType getType();  }