io.magentys.functional.Functions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cherry-java8 Show documentation
Show all versions of cherry-java8 Show documentation
A syntactical sugar project for BDD oriented tests
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 {
}
}