Skip to content

Commit

Permalink
forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmiley committed Nov 9, 2024
1 parent 8596dfc commit 5e8a5c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions solr/core/src/java/org/apache/solr/util/DataConfigNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -142,6 +143,11 @@ public Set<String> keySet() {
return delegate.keySet();
}

@Override
public void forEach(BiConsumer<? super String, ? super String> action) {
delegate.forEach((k, v) -> action.accept(k, substituteVal(v)));
}

@Override
public Set<Entry<String, String>> entrySet() {
return new AbstractSet<>() {
Expand Down

0 comments on commit 5e8a5c5

Please sign in to comment.