io.datakernel.di.util.Constructors Maven / Gradle / Ivy
package io.datakernel.di.util;
/**
* These are just set of functional interfaces to be used by the DSL
*/
public final class Constructors {
@FunctionalInterface
public interface Constructor0 {
R create();
}
@FunctionalInterface
public interface Constructor1 {
R create(P1 arg1);
}
@FunctionalInterface
public interface Constructor2 {
R create(P1 arg1, P2 arg2);
}
@FunctionalInterface
public interface Constructor3 {
R create(P1 arg1, P2 arg2, P3 arg3);
}
@FunctionalInterface
public interface Constructor4 {
R create(P1 arg1, P2 arg2, P3 arg3, P4 arg4);
}
@FunctionalInterface
public interface Constructor5 {
R create(P1 arg1, P2 arg2, P3 arg3, P4 arg4, P5 arg5);
}
@FunctionalInterface
public interface Constructor6 {
R create(P1 arg1, P2 arg2, P3 arg3, P4 arg4, P5 arg5, P6 arg6);
}
@FunctionalInterface
public interface ConstructorN {
R create(Object... args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy