@Test public void testEquals() throws Exception { assertThat(ospfRouterId.equals(new OspfRouterId(IpAddress.valueOf("3.3.3.3"))), is(false)); }
@Override public boolean equals(Object other) { if (!(other instanceof OspfRouterId)) { return false; } OspfRouterId otherOspfRouterId = (OspfRouterId) other; return Objects.equals(ipAddress, otherOspfRouterId.ipAddress); }
OspfRouterId { @Override public boolean equals(Object other) { if (!(other instanceof OspfRouterId)) { return false; } OspfRouterId otherOspfRouterId = (OspfRouterId) other; return Objects.equals(ipAddress, otherOspfRouterId.ipAddress); } }
OspfRouterId { @Override public boolean equals(Object other) { if (!(other instanceof OspfRouterId)) { return false; } OspfRouterId otherOspfRouterId = (OspfRouterId) other; return Objects.equals(ipAddress, otherOspfRouterId.ipAddress); } OspfRouterId(IpAddress ipAddress); }
OspfRouterId { @Override public boolean equals(Object other) { if (!(other instanceof OspfRouterId)) { return false; } OspfRouterId otherOspfRouterId = (OspfRouterId) other; return Objects.equals(ipAddress, otherOspfRouterId.ipAddress); } OspfRouterId(IpAddress ipAddress); static OspfRouterId ospfRouterId(IpAddress ipAddress); static OspfRouterId ospfRouterId(URI uri); static URI uri(OspfRouterId ospfRouterId); static URI uri(IpAddress ipAddress); IpAddress ipAddress(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); }
OspfRouterId { @Override public boolean equals(Object other) { if (!(other instanceof OspfRouterId)) { return false; } OspfRouterId otherOspfRouterId = (OspfRouterId) other; return Objects.equals(ipAddress, otherOspfRouterId.ipAddress); } OspfRouterId(IpAddress ipAddress); static OspfRouterId ospfRouterId(IpAddress ipAddress); static OspfRouterId ospfRouterId(URI uri); static URI uri(OspfRouterId ospfRouterId); static URI uri(IpAddress ipAddress); IpAddress ipAddress(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode();  }