We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e56e537 + 5da00fb commit 5827f74Copy full SHA for 5827f74
src/main/java/org/nibor/autolink/LinkExtractor.java
@@ -90,6 +90,17 @@ public static class Builder {
90
private Builder() {
91
}
92
93
+ /**
94
+ * @param linkTypes the link types that should be extracted (by default, all types are extracted)
95
+ * @return this builder
96
+ */
97
+ public Builder linkTypes(LinkType... linkTypes) {
98
+ if (linkTypes == null) {
99
+ throw new NullPointerException("linkTypes must not be null");
100
+ }
101
+ return this.linkTypes(Set.of(linkTypes));
102
103
+
104
/**
105
* @param linkTypes the link types that should be extracted (by default, all types are extracted)
106
* @return this builder
0 commit comments