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

io.nosqlbench.virtdata.userlibs.apps.docsapp.fdocs.FDoc Maven / Gradle / Ivy

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.virtdata.userlibs.apps.docsapp.fdocs;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class FDoc implements Iterable {

    private final Map docs = new HashMap<>();

    public FDoc() {
    }

    public FDocCat addCategory(String categoryName) {
        return docs.computeIfAbsent(categoryName, FDocCat::new);
    }

    @Override
    public Iterator iterator() {
        return docs.values().iterator();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy