com.stanfy.helium.entities.Converter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of helium Show documentation
Show all versions of helium Show documentation
DSL and Java API for REST API specification
package com.stanfy.helium.entities;
import com.stanfy.helium.model.Type;
import java.io.IOException;
import java.util.List;
/**
* Can read/write data of some type with some format.
* @param type class
* @param output type
* @param input type
*/
public interface Converter {
String getFormat();
T getType();
void write(O output, Object value) throws IOException;
Object read(I input, List errors) throws IOException;
}