public static final class FP.Some<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
<U> water.util.fp.FP.Option<U> |
flatMap(Function<T,water.util.fp.FP.Option<U>> f) |
T |
get() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
nonEmpty() |
java.lang.String |
toString() |
public Some(T t)
public boolean isEmpty()
public boolean nonEmpty()
public java.util.Iterator<T> iterator()
public T get()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object