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

cyclops.conversion.vavr.FromGuava Maven / Gradle / Ivy

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy