V - the type of the value and the errorpublic final class ImmutableErronousValue<V> extends java.lang.Object implements ErronousValue<V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
com.google.common.base.Optional<V> |
error()
Retrieve the error of the scalar
|
int |
hashCode() |
static <V> ImmutableErronousValue<V> |
ofValue(V value) |
static <V> ImmutableErronousValue<V> |
ofValueAndError(V value,
com.google.common.base.Optional<V> error) |
static <V> ImmutableErronousValue<V> |
ofValueAndError(V value,
V error) |
java.lang.String |
toString() |
V |
value() |
public static <V> ImmutableErronousValue<V> ofValue(V value)
public static <V> ImmutableErronousValue<V> ofValueAndError(V value, V error)
public static <V> ImmutableErronousValue<V> ofValueAndError(V value, com.google.common.base.Optional<V> error)
public V value()
value in interface ErronousValue<V>public com.google.common.base.Optional<V> error()
ErronousValueerror in interface ErronousValue<V>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object