org.simpleflatmapper.converter.ComposedConverter Maven / Gradle / Ivy
package org.simpleflatmapper.converter;
public class ComposedConverter implements Converter {
private final Converter super I, ? extends J> c1;
private final Converter super J, ? extends O> c2;
public ComposedConverter(Converter super I, ? extends J> c1, Converter super J, ? extends O> c2) {
this.c1 = c1;
this.c2 = c2;
}
@Override
public O convert(I in) throws Exception {
return c2.convert(c1.convert(in));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy