/** * Checks if the specified tag is already defined in the supplied * documentation block. * * @param doc the documentation block * @param tag the tag to check * @return {@code true} if it exists, else {@code false} */ private static boolean hasTagAlready(Javadoc doc, JavadocTag tag) { requireNonNull(doc); requireNonNull(tag); return doc.getTags().stream().anyMatch(t -> tag.getName().equals(t.getName()) && tag.getValue().equals(t.getValue()) ); } }
/** * Copy constructor. * * @param prototype the prototype */ protected JavadocImpl(final Javadoc prototype) { text = requireNonNull(prototype).getText(); tags = Copier.copy(prototype.getTags()); imports = Copier.copy(prototype.getImports()); }
final String formattedText = formatText(model.getText(), 0, blockWidth).toString(); final Map<String, List<JavadocTag>> tagGroups = model.getTags().stream() .collect(Collectors.groupingBy( JavadocView::groupOf,
/** * Copy constructor. * * @param prototype the prototype */ protected JavadocImpl(final Javadoc prototype) { text = requireNonNull(prototype).getText(); tags = Copier.copy(prototype.getTags()); }
/** * Checks if the specified tag is already defined in the supplied * documentation block. * * @param doc the documentation block * @param tag the tag to check * @return {@code true} if it exists, else {@code false} */ private static boolean hasTagAlready(Javadoc doc, JavadocTag tag) { requireNonNull(doc); requireNonNull(tag); return doc.getTags().stream().anyMatch(t -> tag.getName().equals(t.getName()) && tag.getValue().equals(t.getValue()) ); } }
/** * Checks if the specified tag is already defined in the supplied * documentation block. * * @param doc the documentation block * @param tag the tag to check * @return {@code true} if it exists, else {@code false} */ private static boolean hasTagAlready(Javadoc doc, JavadocTag tag) { requireNonNull(doc); requireNonNull(tag); return doc.getTags().stream().anyMatch(t -> tag.getName().equals(t.getName()) && tag.getValue().equals(t.getValue()) ); } }
/** * Copy constructor. * * @param prototype the prototype */ protected JavadocImpl(final Javadoc prototype) { text = requireNonNull(prototype).getText(); tags = Copier.copy(prototype.getTags()); imports = Copier.copy(prototype.getImports()); }
final String formattedText = formatText(model.getText(), 0, blockWidth).toString(); final Map<String, List<JavadocTag>> tagGroups = model.getTags().stream() .collect(Collectors.groupingBy( JavadocView::groupOf,
final String formattedText = formatText(model.getText(), 0, blockWidth).toString(); final Map<String, List<JavadocTag>> tagGroups = model.getTags().stream() .collect(Collectors.groupingBy( JavadocView::groupOf,