/** * @return <code>true</code> if the link originates at the other end */ public boolean isIncoming() { return this.status.isIncoming(); }
/** * @return <code>true</code> if the link originates at the other end */ public boolean isIncoming() { return this.status.isIncoming(); }
private List<LinkedSpecificationItem> getIncomingItems() { return this.links.entrySet() // .stream() // .filter(entry -> entry.getKey().isIncoming()) // .flatMap(entry -> entry.getValue().stream()) // .collect(Collectors.toList()); }
private List<LinkedSpecificationItem> getIncomingItems() { return this.links.entrySet() // .stream() // .filter(entry -> entry.getKey().isIncoming()) // .flatMap(entry -> entry.getValue().stream()) // .collect(Collectors.toList()); }
/** * Count all incoming links. * * @return total number of incoming links. */ public int countIncomingLinks() { return countLinksWithPredicate(entry -> entry.getKey().isIncoming()); }
/** * Count all incoming links. * * @return total number of incoming links. */ public int countIncomingLinks() { return countLinksWithPredicate(entry -> entry.getKey().isIncoming()); }
private void renderLink(final PrintStream report, final TracedLink link, final boolean showOrigin) { final LinkStatus status = link.getStatus(); report.print(status.isIncoming() ? "|<-- (" : "|--> ("); report.print(status.getShortTag()); report.print(") "); report.print(link.getOtherLinkEnd().getId()); report.print(this.settings.getNewline()); if (showOrigin) { final Location location = link.getOtherLinkEnd().getLocation(); if (location != null) { report.print("| "); renderOrigin(report, location); report.print(this.settings.getNewline()); } } }
private void renderLink(final PrintStream report, final TracedLink link, final boolean showOrigin) { final LinkStatus status = link.getStatus(); report.print(status.isIncoming() ? "|<-- (" : "|--> ("); report.print(status.getShortTag()); report.print(") "); report.print(link.getOtherLinkEnd().getId()); report.print(this.settings.getNewline()); if (showOrigin) { final Location location = link.getOtherLinkEnd().getLocation(); if (location != null) { report.print("| "); renderOrigin(report, location); report.print(this.settings.getNewline()); } } }