@Test public void testToString() { LinkKey k1 = LinkKey.linkKey(SRC1, DST1); String k1String = k1.toString(); assertThat(k1String, allOf(containsString("LinkKey{"), containsString("src=ConnectPoint{elementId=1, portNumber=1}"), containsString("dst=ConnectPoint{elementId=2, portNumber=1}"))); }
@Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("src", src) .add("dst", dst) .toString(); }
LinkKey { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("src", src) .add("dst", dst) .toString(); } }
LinkKey { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("src", src) .add("dst", dst) .toString(); } private  LinkKey(ConnectPoint src, ConnectPoint dst); }
LinkKey { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("src", src) .add("dst", dst) .toString(); } 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 { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("src", src) .add("dst", dst) .toString(); } 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();  }