com.aol.cyclops.guava.FromCyclopsReact 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.stream.Stream;
import com.aol.cyclops.types.MonadicValue;
import com.google.common.base.Optional;
import com.google.common.collect.FluentIterable;
public class FromCyclopsReact {
public static FluentIterable fromSimpleReact(
Stream s) {
return FluentIterable.from(()->s.iterator());
}
public static Optional option(MonadicValue value){
return Optional.fromNullable(value.orElse(null));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy