io.magentys.java8.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
The newest version!
package io.magentys.java8.functional;
import io.magentys.java8.FunctionalAgent;
public class Functions {
@FunctionalInterface
public interface Function2 {
Result apply(One one, Two two) throws Exception;
}
@FunctionalInterface
public interface Function3 {
Result apply(One one, Two two, Three three) throws Exception;
}
@FunctionalInterface
public interface Function4 {
Result apply(One one, Two two, Three three, Four four) throws Exception;
}
@FunctionalInterface
public interface Function5 {
Result apply(One one, Two two, Three three, Four four, Five five) throws Exception;
}
@FunctionalInterface
public interface Function6 {
Result apply(One one, Two two, Three three, Four four, Five five, Six six) throws Exception;
}
@FunctionalInterface
public interface Function7 {
Result apply(One one, Two two, Three three, Four four, Five five, Six six, Seven seven) throws Exception;
}
@FunctionalInterface
public interface Function8 {
Result apply(One one, Two two, Three three, Four four, Five five, Six six, Seven seven, Eight eight) throws Exception;
}
@FunctionalInterface
public interface Function9 {
Result apply(One one, Two two, Three three, Four four, Five five, Six six, Seven seven, Eight eight, Nine nine) throws Exception;
}
@FunctionalInterface
public interface Function10 {
Result apply(One one, Two two, Three three, Four four, Five five, Six six, Seven seven, Eight eight, Nine nine, Ten ten) throws Exception;
}
@FunctionalInterface
public interface FunctionalMission {
RESULT apply(FunctionalAgent functionalAgent) throws Exception;
}
@FunctionalInterface
public interface FunctionalMission1 extends Function2 {
}
@FunctionalInterface
public interface FunctionalMission2 extends Function3 {
}
@FunctionalInterface
public interface FunctionalMission3 extends Function4 {
}
@FunctionalInterface
public interface FunctionalMission4 extends Function5 {
}
@FunctionalInterface
public interface FunctionalMission5 extends Function6 {
}
@FunctionalInterface
public interface FunctionalMission6
extends Function7 {
}
@FunctionalInterface
public interface FunctionalMission7
extends Function8 {
}
@FunctionalInterface
public interface FunctionalMission8
extends Function9 {
}
@FunctionalInterface
public interface FunctionalMission9
extends Function10 {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy