cyclops.conversion.vavr.FromGuava Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cyclops-vavr Show documentation
Show all versions of cyclops-vavr Show documentation
Converters and Comprehenders for Javaslang
The newest version!
package cyclops.conversion.vavr;
import io.vavr.Function1;
import io.vavr.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());
}
}