com.spun.util.persistence.Saver2 Maven / Gradle / Ivy
package com.spun.util.persistence;
import com.spun.util.Tuple;
import org.lambda.actions.Action2;
import org.lambda.functions.Function2;
public class Saver2
{
public static Saver> create(Action2 lambda)
{
return t -> {
lambda.call(t.getFirst(), t.getSecond());
return t;
};
}
public static Saver> create(Function2> lambda)
{
return t -> lambda.call(t.getFirst(), t.getSecond());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy