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

io.magentys.functional.Functions Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package io.magentys.functional;

import io.magentys.FunctionalAgent;

public class Functions {



    @FunctionalInterface
    public interface Function2 {
        Result apply(One one, Two two);
    }

    @FunctionalInterface
    public interface Function3 {
        Result apply(One one, Two two, Three three);
    }

    @FunctionalInterface
    public interface Function4 {
        Result apply(One one, Two two, Three three, Four four);
    }
    @FunctionalInterface
    public interface Function5 {
        Result apply(One one, Two two, Three three, Four four, Five five);
    }

    @FunctionalInterface
    public interface FunctionalMission {
        RESULT apply(FunctionalAgent functionalAgent);
    }

    @FunctionalInterface
    public interface FunctionalMission1 extends Function2 {

    }

    @FunctionalInterface
    public interface FunctionalMission2 extends Function3 {

    }

    @FunctionalInterface
    public interface FunctionalMission3 extends Function4 {

    }

    @FunctionalInterface
    public interface FunctionalMission4 extends Function5 {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy