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

dk.mada.jaxrs.generator.mpclient.imports.JavaIo Maven / Gradle / Ivy

package dk.mada.jaxrs.generator.mpclient.imports;

import java.util.Optional;

import dk.mada.jaxrs.generator.mpclient.imports.Imports.ImportRenderPrefs;

/**
 * Java IO import paths.
 */
public enum JavaIo implements TypedImport {
    /** IOException. */
    IO_EXCEPTION("java.io.IOException"),
    /** Serializable. */
    IO_SERIALIZABLE("java.io.Serializable");

    /** The import path for the type. */
    private final String importPath;

    JavaIo(String importPath) {
        this.importPath = importPath;
    }

    @Override
    public Optional path(ImportRenderPrefs irp) {
        return Optional.of(importPath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy