
org.codegas.commons.ende.api.Decoder Maven / Gradle / Ivy
package org.codegas.commons.ende.api;
import java.util.function.Function;
@FunctionalInterface
public interface Decoder extends Function {
default Decoder andThen(Function super R, ? extends V> after) {
return (T t) -> after.apply(apply(t));
}
default R apply(T t) {
return t == null ? null : decode(t);
}
R decode(T t);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy