Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.lambda.actions.Actions Maven / Gradle / Ivy
package org.lambda.actions;
import com.spun.util.ObjectUtils;
public class Actions
{
public static Action1 unchecked(Action1WithException action)
{
return i -> ObjectUtils.throwAsError(() -> action.call(i));
}
public static Action2 unchecked(Action2WithException action)
{
return (p1, p2) -> ObjectUtils.throwAsError(() -> action.call(p1, p2));
}
public static Action3 unchecked(Action3WithException action)
{
return (p1, p2, p3) -> ObjectUtils.throwAsError(() -> action.call(p1, p2, p3));
}
public static Action4 unchecked(
Action4WithException action)
{
return (p1, p2, p3, p4) -> ObjectUtils.throwAsError(() -> action.call(p1, p2, p3, p4));
}
public static Action5 unchecked(
Action5WithException action)
{
return (p1, p2, p3, p4, p5) -> ObjectUtils.throwAsError(() -> action.call(p1, p2, p3, p4, p5));
}
public static Action6 unchecked(
Action6WithException action)
{
return (p1, p2, p3, p4, p5, p6) -> ObjectUtils.throwAsError(() -> action.call(p1, p2, p3, p4, p5, p6));
}
public static Action7 unchecked(
Action7WithException action)
{
return (p1, p2, p3, p4, p5, p6, p7) -> ObjectUtils.throwAsError(() -> action.call(p1, p2, p3, p4, p5, p6, p7));
}
public static Action8 unchecked(
Action8WithException action)
{
return (p1, p2, p3, p4, p5, p6, p7, p8) -> ObjectUtils
.throwAsError(() -> action.call(p1, p2, p3, p4, p5, p6, p7, p8));
}
public static Action9 unchecked(
Action9WithException action)
{
return (p1, p2, p3, p4, p5, p6, p7, p8, p9) -> ObjectUtils
.throwAsError(() -> action.call(p1, p2, p3, p4, p5, p6, p7, p8, p9));
}
}