aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/collections
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-04-08 23:06:06 +0200
committerJon Bratseth <bratseth@gmail.com>2021-04-08 23:06:06 +0200
commitb47236f1eb00223a0bc6f641ac05b72977d73a7e (patch)
treeba767592b2dc44ace58e06fd08e9852298f94e2b /vespajlib/src/main/java/com/yahoo/collections
parentce14456b95c202262d3496441b2920ce7e74b8ac (diff)
More NodeList
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/collections')
-rw-r--r--vespajlib/src/main/java/com/yahoo/collections/AbstractFilteringList.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/collections/AbstractFilteringList.java b/vespajlib/src/main/java/com/yahoo/collections/AbstractFilteringList.java
index ec85cb6de56..2b7f4027fbc 100644
--- a/vespajlib/src/main/java/com/yahoo/collections/AbstractFilteringList.java
+++ b/vespajlib/src/main/java/com/yahoo/collections/AbstractFilteringList.java
@@ -68,8 +68,14 @@ public abstract class AbstractFilteringList<Type, ListType extends AbstractFilte
return matching(new HashSet<>(others.asList())::contains);
}
- /** Returns the union of the two lists. */
+ /** @deprecated use and(others) */
+ @Deprecated // TODO: Remove on Vespa 8
public ListType concat(ListType others) {
+ return and(others);
+ }
+
+ /** Returns the union of the two lists. */
+ public ListType and(ListType others) {
return constructor.apply(Stream.concat(items.stream(), others.asList().stream()).collect(toUnmodifiableList()), false);
}