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

io.github.mike10004.debutils.BufferedDebControl Maven / Gradle / Ivy

package io.github.mike10004.debutils;

import javax.annotation.Nullable;
import java.util.Map;
import java.util.stream.Stream;

class BufferedDebControl implements DebControl {

    private final Map fileMap;

    public BufferedDebControl(Map fileMap) {
        this.fileMap = Map.copyOf(fileMap);
    }

    @Override
    public Stream filenames() {
        return fileMap.keySet().stream();
    }

    @Override
    @Nullable
    public PackagingFile getFileData(String filename) {
        return fileMap.get(filename);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy