private static boolean areEquals()

in src/main/java/org/apache/sling/feature/diff/impl/ConfigurationsComparator.java [167:190]


    private static boolean areEquals(Map<?, ?> lhs, Map<?, ?> rhs) {
        for (Entry<?, ?> previousEntry : lhs.entrySet()) {
            Object previousKey = previousEntry.getKey();

            if (!rhs.containsKey(previousKey)) {
                return false;
            } else {
                Object previousValue = previousEntry.getValue();
                Object currentValue = rhs.get(previousKey);

                if (!areEquals(previousValue, currentValue)) {
                    return false;
                }
            }
        }

        for (Object currentKey : rhs.keySet()) {
            if (!lhs.containsKey(currentKey)) {
                return false;
            }
        }

        return true;
    }