@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new BorderInterfaceInfo(NodeInterfacePair.of("node", "interface")), new BorderInterfaceInfo(NodeInterfacePair.of("node", "interface"))) .addEqualityGroup( new BorderInterfaceInfo(NodeInterfacePair.of("diffNode", "diffInterface"))) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BorderInterfaceInfo)) { return false; } BorderInterfaceInfo that = (BorderInterfaceInfo) o; return Objects.equals(_borderInterface, that._borderInterface); }
BorderInterfaceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BorderInterfaceInfo)) { return false; } BorderInterfaceInfo that = (BorderInterfaceInfo) o; return Objects.equals(_borderInterface, that._borderInterface); } }
BorderInterfaceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BorderInterfaceInfo)) { return false; } BorderInterfaceInfo that = (BorderInterfaceInfo) o; return Objects.equals(_borderInterface, that._borderInterface); } BorderInterfaceInfo(@Nonnull NodeInterfacePair borderInterface); }
BorderInterfaceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BorderInterfaceInfo)) { return false; } BorderInterfaceInfo that = (BorderInterfaceInfo) o; return Objects.equals(_borderInterface, that._borderInterface); } BorderInterfaceInfo(@Nonnull NodeInterfacePair borderInterface); @Override boolean equals(Object o); @Override int hashCode(); @JsonProperty(PROP_BORDER_INTERFACE) @Nonnull NodeInterfacePair getBorderInterface(); }
BorderInterfaceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BorderInterfaceInfo)) { return false; } BorderInterfaceInfo that = (BorderInterfaceInfo) o; return Objects.equals(_borderInterface, that._borderInterface); } BorderInterfaceInfo(@Nonnull NodeInterfacePair borderInterface); @Override boolean equals(Object o); @Override int hashCode(); @JsonProperty(PROP_BORDER_INTERFACE) @Nonnull NodeInterfacePair getBorderInterface();  }