com.aol.cyclops.guava.FromFunctionalJava Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cyclops-guava Show documentation
Show all versions of cyclops-guava Show documentation
Converters and Comprehenders for Guava
package com.aol.cyclops.guava;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import fj.F;
public class FromFunctionalJava {
public static Function f1(F fn){
return (t) -> fn.f(t);
}
public static Optional option(fj.data.Option o){
if(o.isNone())
return Optional.absent();
return Optional.of(o.some());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy