Package org.opensearch.common.util
Class Maps
java.lang.Object
org.opensearch.common.util.Maps
Map utility class.
- Opensearch.internal:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> boolean deepEquals
(Map<K, V> left, Map<K, V> right) Returnstrue
if the two specified maps are equal to one another.
-
Constructor Details
-
Maps
public Maps()
-
-
Method Details
-
deepEquals
Returnstrue
if the two specified maps are equal to one another. Two maps are considered equal if both represent identical mappings where values are checked with Objects.deepEquals. The primary use case is to check if two maps with array values are equal.- Parameters:
left
- one map to be tested for equalityright
- the other map to be tested for equality- Returns:
true
if the two maps are equal
-