@Test public void testEquals() { assertThat(new DirectedRelationshipType(RelationshipType.withName("foo"), Direction.INCOMING), is(equalTo(new DirectedRelationshipType(RelationshipType.withName("foo"), Direction.INCOMING)))); }
@Override public boolean equals(Object obj) { if (!(obj instanceof DirectedRelationshipType)) { return false; } DirectedRelationshipType c = (DirectedRelationshipType) obj; return Objects.equals(type.name(), c.getType().name()) && Objects.equals(direction, c.getDirection()); }
DirectedRelationshipType { @Override public boolean equals(Object obj) { if (!(obj instanceof DirectedRelationshipType)) { return false; } DirectedRelationshipType c = (DirectedRelationshipType) obj; return Objects.equals(type.name(), c.getType().name()) && Objects.equals(direction, c.getDirection()); } }
DirectedRelationshipType { @Override public boolean equals(Object obj) { if (!(obj instanceof DirectedRelationshipType)) { return false; } DirectedRelationshipType c = (DirectedRelationshipType) obj; return Objects.equals(type.name(), c.getType().name()) && Objects.equals(direction, c.getDirection()); } DirectedRelationshipType(RelationshipType type);  DirectedRelationshipType(RelationshipType type, Direction direction); @JsonCreator  DirectedRelationshipType(@JsonProperty("type") String type, @JsonProperty("direction") String direction); }
DirectedRelationshipType { @Override public boolean equals(Object obj) { if (!(obj instanceof DirectedRelationshipType)) { return false; } DirectedRelationshipType c = (DirectedRelationshipType) obj; return Objects.equals(type.name(), c.getType().name()) && Objects.equals(direction, c.getDirection()); } DirectedRelationshipType(RelationshipType type);  DirectedRelationshipType(RelationshipType type, Direction direction); @JsonCreator  DirectedRelationshipType(@JsonProperty("type") String type, @JsonProperty("direction") String direction); @JsonIgnore RelationshipType getType(); @JsonProperty("type") String getRelationshipType(); @JsonProperty Direction getDirection(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
DirectedRelationshipType { @Override public boolean equals(Object obj) { if (!(obj instanceof DirectedRelationshipType)) { return false; } DirectedRelationshipType c = (DirectedRelationshipType) obj; return Objects.equals(type.name(), c.getType().name()) && Objects.equals(direction, c.getDirection()); } DirectedRelationshipType(RelationshipType type);  DirectedRelationshipType(RelationshipType type, Direction direction); @JsonCreator  DirectedRelationshipType(@JsonProperty("type") String type, @JsonProperty("direction") String direction); @JsonIgnore RelationshipType getType(); @JsonProperty("type") String getRelationshipType(); @JsonProperty Direction getDirection(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }