
com.tailoredshapes.underbar.function.RegularFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ocho Show documentation
Show all versions of ocho Show documentation
Foundational functions inspired by Clojure and underscore.js
package com.tailoredshapes.underbar.function;
/**
* Created by tmarsh on 11/3/16.
*/
public interface RegularFunctions {
@FunctionalInterface
interface SeptaConsumer {
void accept(S s, T t, U u, V v, X x, Y y, Z z);
}
@FunctionalInterface
interface SeptaFunction {
R apply(T t, U u, V v, W w, X x, Y y, Z z);
}
@FunctionalInterface
interface TriConsumer {
void accept(T t, U u, V v);
}
@FunctionalInterface
interface TriFunction {
R apply(T t, U u, V v);
}
@FunctionalInterface
interface QuadFunction {
R apply(T t, U u, V v, W w);
}
@FunctionalInterface
interface HexFunction {
R apply(T t, U u, V v, W w, X x, Y y);
}
@FunctionalInterface
interface QuadConsumer {
void accept(T t, U u, V v, X x);
}
@FunctionalInterface
interface HexConsumer {
void accept(T t, U u, V v, X x, Y y, Z z);
}
@FunctionalInterface
interface OctaConsumer {
void accept(R r, S s, T t, U u, V v, X x, Y y, Z z);
}
@FunctionalInterface
interface OctaFunction {
R apply(T t, U u, V v, W w, X x, Y y, Z z, A a);
}
@FunctionalInterface
interface PentaFunction {
R apply(T t, U u, V v, W w, X x);
}
@FunctionalInterface
interface PentaConsumer {
void accept(T t, U u, V v, X x, Y y);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy