@Test public void testCompareNotEquals() { LinkKey k1 = LinkKey.linkKey(SRC1, DST1); LinkKey k2 = LinkKey.linkKey(SRC1, DST2); assertThat(k1, is(not(equalTo(k2)))); assertThat(k1, is(not(equalTo(new Object())))); }
private LinkKey(ConnectPoint src, ConnectPoint dst) { this.src = checkNotNull(src); this.dst = checkNotNull(dst); }
LinkKey { private LinkKey(ConnectPoint src, ConnectPoint dst) { this.src = checkNotNull(src); this.dst = checkNotNull(dst); } }
LinkKey { private LinkKey(ConnectPoint src, ConnectPoint dst) { this.src = checkNotNull(src); this.dst = checkNotNull(dst); } private  LinkKey(ConnectPoint src, ConnectPoint dst); }
LinkKey { private LinkKey(ConnectPoint src, ConnectPoint dst) { this.src = checkNotNull(src); this.dst = checkNotNull(dst); } private  LinkKey(ConnectPoint src, ConnectPoint dst); ConnectPoint src(); ConnectPoint dst(); static LinkKey linkKey(ConnectPoint src, ConnectPoint dst); static LinkKey linkKey(Link link); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
LinkKey { private LinkKey(ConnectPoint src, ConnectPoint dst) { this.src = checkNotNull(src); this.dst = checkNotNull(dst); } private  LinkKey(ConnectPoint src, ConnectPoint dst); ConnectPoint src(); ConnectPoint dst(); static LinkKey linkKey(ConnectPoint src, ConnectPoint dst); static LinkKey linkKey(Link link); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }