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);
}
}