- /**
- * Creates a new link part.
- *
- * @param link
- * The link of the link part
- * @param text
- * The text of the link part
- * @param title
- * The title of the link part
- */
- public LinkPart(String link, String text, String title) {
- this.link = link;
- this.text = text;
- this.title = title;
+ public LinkPart(@Nonnull String link, @Nonnull String text, @Nonnull String title) {
+ this.link = Objects.requireNonNull(link);
+ this.text = Objects.requireNonNull(text);
+ this.title = Objects.requireNonNull(title);