From 5e8a5c5108b9f6e82ad2359ac90c9aed2a97a07a Mon Sep 17 00:00:00 2001 From: David Smiley Date: Fri, 8 Nov 2024 21:10:59 -0500 Subject: [PATCH] forEach --- solr/core/src/java/org/apache/solr/util/DataConfigNode.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/solr/core/src/java/org/apache/solr/util/DataConfigNode.java b/solr/core/src/java/org/apache/solr/util/DataConfigNode.java index fde5693534a..4711e644cb4 100644 --- a/solr/core/src/java/org/apache/solr/util/DataConfigNode.java +++ b/solr/core/src/java/org/apache/solr/util/DataConfigNode.java @@ -25,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.function.BiConsumer; import java.util.function.Function; import java.util.function.Predicate; import org.apache.solr.common.ConfigNode; @@ -142,6 +143,11 @@ public Set keySet() { return delegate.keySet(); } + @Override + public void forEach(BiConsumer action) { + delegate.forEach((k, v) -> action.accept(k, substituteVal(v))); + } + @Override public Set> entrySet() { return new AbstractSet<>() {