Located in compilation unit of org.
| Modifier and Type | Field and Description |
|---|---|
| private final L |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public Optional | |
| public final boolean | equals(Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public void | exec(Consumer<? super L> ifLeft, Consumer<? super R> ifRight)
Implements org.
|
| public <L2, R2> Either | |
| public <L2> Either | |
| public <R2> Either | |
| public L | |
| public R | |
| public final int | |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public <L2, R2> Either | map(Function<? super L, ? extends L2> f, Function<? super R, ? extends R2> g)
Implements org.
|
| public <L2> Either | |
| public <R2> Either | |
| public L | |
| public R | |
| public String | |
| public <T> T | unify(Function<? super L, ? extends T> f, Function<? super R, ? extends T> g)
Implements org.
|
| value | back to summary |
|---|---|
| private final L value | |
| Left | back to summary |
|---|---|
| public Left(L value) | |
| asLeft | back to summary |
|---|---|
| public Optional Implements org.
| |
| asRight | back to summary |
|---|---|
| public Optional Implements org.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| exec | back to summary |
|---|---|
| public void exec(Consumer<? super L> ifLeft, Consumer<? super R> ifRight) Implements org.
| |
| flatMap | back to summary |
|---|---|
| public <L2, R2> Either Implements org.
| |
| flatMapLeft | back to summary |
|---|---|
| public <L2> Either Implements org.
| |
| flatMapRight | back to summary |
|---|---|
| public <R2> Either Implements org.
| |
| getLeft | back to summary |
|---|---|
| public L getLeft() Implements org.
| |
| getRight | back to summary |
|---|---|
| public R getRight() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| ifLeft | back to summary |
|---|---|
| public void ifLeft(Consumer<? super L> f) Implements org.
| |
| ifRight | back to summary |
|---|---|
| public void ifRight(Consumer<? super R> f) Implements org.
| |
| isLeft | back to summary |
|---|---|
| public boolean isLeft() Implements org.
| |
| isRight | back to summary |
|---|---|
| public boolean isRight() Implements org.
| |
| map | back to summary |
|---|---|
| public <L2, R2> Either Implements org.
| |
| mapLeft | back to summary |
|---|---|
| public <L2> Either Implements org.
| |
| mapRight | back to summary |
|---|---|
| public <R2> Either Implements org.
| |
| toLeft | back to summary |
|---|---|
| public L toLeft(Function<? super R, ? extends L> f) Implements org.
| |
| toRight | back to summary |
|---|---|
| public R toRight(Function<? super L, ? extends R> f) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unify | back to summary |
|---|---|
| public <T> T unify(Function<? super L, ? extends T> f, Function<? super R, ? extends T> g) Implements org.
| |