com.aol.cyclops.guava.FromJDK 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 java.util.function.Function;
import com.google.common.base.Optional;
public class FromJDK {
public static com.google.common.base.Function f1(Function fn){
return (t) -> fn.apply(t);
}
public static Optional option(java.util.Optional o){
if(o.isPresent())
return Optional.of(o.get());
return Optional.absent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy