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

org.openapitools.codegen.model.ModelsMap Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
package org.openapitools.codegen.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ModelsMap extends HashMap {

    public ModelsMap() {}

    public void setModels(List modelMaps) {
        put("models", modelMaps);
    }

    @SuppressWarnings("unchecked")
    public List getModels() {
        return (List) get("models");
    }

    public void setImports(List> imports) {
        put("imports", imports);
    }

    @SuppressWarnings("unchecked")
    public List> getImports() {
        return (List>) get("imports");
    }

    @SuppressWarnings("unchecked")
    public List> getImportsOrEmpty() {
        return (List>) getOrDefault("imports", new ArrayList<>());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy