All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.persistence.Saver2 Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
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