com.aol.cyclops.javaslang.FromGuava Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cyclops-javaslang Show documentation
Show all versions of cyclops-javaslang Show documentation
Converters and Comprehenders for Javaslang
package com.aol.cyclops.javaslang;
import javaslang.Function1;
import javaslang.control.Option;
import com.google.common.base.Function;
import com.google.common.base.Optional;
public class FromGuava {
public static Function1 f1(Function fn){
return (t) -> fn.apply(t);
}
public static Option option(Optional o){
return Option.of(o.orNull());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy