From 6c4c5e237919f54a26c608a414c96cf72747e1ae Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Fri, 17 Sep 2021 06:54:50 -0400 Subject: [PATCH] Implement get and containsKey in terms of the wrapped innerMap (#77965) --- .../cluster/metadata/DiffableStringMap.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/src/main/java/org/elasticsearch/cluster/metadata/DiffableStringMap.java b/server/src/main/java/org/elasticsearch/cluster/metadata/DiffableStringMap.java index 6edde80272454..fdc95c6db83cf 100644 --- a/server/src/main/java/org/elasticsearch/cluster/metadata/DiffableStringMap.java +++ b/server/src/main/java/org/elasticsearch/cluster/metadata/DiffableStringMap.java @@ -47,6 +47,16 @@ public Set> entrySet() { return innerMap.entrySet(); } + @Override + public String get(Object key) { + return innerMap.get(key); + } + + @Override + public boolean containsKey(Object key) { + return innerMap.containsKey(key); + } + @Override @SuppressWarnings("unchecked") public void writeTo(StreamOutput out) throws IOException {