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

org.codegas.commons.ende.api.Decoder Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.codegas.commons.ende.api;

import java.util.function.Function;

@FunctionalInterface
public interface Decoder extends Function {

    default  Decoder andThen(Function after) {
        return (T t) -> after.apply(apply(t));
    }

    default R apply(T t) {
        return t == null ? null : decode(t);
    }

    R decode(T t);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy