/** * @return <code>true</code> if the link originates at the other end */ public boolean isIncoming() { return this.status.isIncoming(); }
private boolean hasBadLinks() { for (final LinkStatus status : this.links.keySet()) { if (status.isBad()) { return true; } } return false; }
/** * Check if the link is an incoming link. * * @return <code>true</code> if the link is incoming. */ public boolean isIncoming() { return (this == COVERED_SHALLOW) || isBadIncoming(); }
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()); } } }
/** * Check if the link is an outgoing link. * * @return <code>true</code> if the link is outgoing. */ public boolean isOutgoing() { return (this == LinkStatus.COVERS) || isBadOutgoing(); }
/** * @return <code>true</code> if the link points towards the other end */ public boolean isOutgoing() { return this.status.isOutgoing(); }
/** * Count the duplicate links. * * @return the number of links that are duplicates. */ public int countDuplicateLinks() { return countLinksWithPredicate(entry -> entry.getKey().isDuplicate()); }
@Generated(value = "org.eclipse.Eclipse") @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.otherLinkEnd == null) ? 0 : this.otherLinkEnd.hashCode()); result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); return result; }
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()); } } }
/** * Check if the link is an outgoing link. * * @return <code>true</code> if the link is outgoing. */ public boolean isOutgoing() { return (this == LinkStatus.COVERS) || isBadOutgoing(); }
/** * @return <code>true</code> if the link points towards the other end */ public boolean isOutgoing() { return this.status.isOutgoing(); }
/** * Count the duplicate links. * * @return the number of links that are duplicates. */ public int countDuplicateLinks() { return countLinksWithPredicate(entry -> entry.getKey().isDuplicate()); }
@Generated(value = "org.eclipse.Eclipse") @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.otherLinkEnd == null) ? 0 : this.otherLinkEnd.hashCode()); result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); return result; }
/** * @return <code>true</code> if the link originates at the other end */ public boolean isIncoming() { return this.status.isIncoming(); }
/** * Count all bad outgoing links. * * @return number of outgoing links that are bad. */ public int countOutgoingBadLinks() { return countLinksWithPredicate(entry -> entry.getKey().isBadOutgoing()); }
/** * Check if the link is an incoming link. * * @return <code>true</code> if the link is incoming. */ public boolean isIncoming() { return (this == COVERED_SHALLOW) || isBadIncoming(); }
/** * Count all outgoing links. * * @return total number of outgoing links. */ public int countOutgoingLinks() { return countLinksWithPredicate(entry -> entry.getKey().isOutgoing()); }
private boolean hasBadLinks() { for (final LinkStatus status : this.links.keySet()) { if (status.isBad()) { return true; } } return false; }
private List<LinkedSpecificationItem> getIncomingItems() { return this.links.entrySet() // .stream() // .filter(entry -> entry.getKey().isIncoming()) // .flatMap(entry -> entry.getValue().stream()) // .collect(Collectors.toList()); }
/** * Count all bad outgoing links. * * @return number of outgoing links that are bad. */ public int countOutgoingBadLinks() { return countLinksWithPredicate(entry -> entry.getKey().isBadOutgoing()); }