All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.vincentrussell.ini.DelegateMapWrapper Maven / Gradle / Ivy

package com.github.vincentrussell.ini;

import java.util.AbstractMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public final class DelegateMapWrapper extends AbstractMap {

    final Map[] sourceMaps;

    public DelegateMapWrapper(final Map... sourceMaps) {
        this.sourceMaps = sourceMaps;
    }

    @Override
    public Set> entrySet() {
        Set> entrySet = new HashSet<>();
        for (Map map : sourceMaps) {
            entrySet.addAll(map.entrySet());
        }
        return entrySet;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy