Modifier and Type | Method and Description |
---|---|
void |
consume(Consumer<? super L> consumerLeft,
Consumer<? super R> consumerRight) |
boolean |
equals(Object obj) |
boolean |
exists(Predicate<R> p) |
<T> Xor<? super L,T> |
flatMap(Function<? super R,Xor<? super L,T>> mapper) |
<T> T |
fold(Function<? super L,? extends T> mapLeft,
Function<? super R,? extends T> mapRight) |
R |
getOrElse(Supplier<? extends R> supplier) |
int |
hashCode() |
boolean |
isLeft() |
boolean |
isRight() |
Optional<L> |
left() |
<T> Xor<T,R> |
leftMap(Function<? super L,Xor<T,R>> mapper) |
<T> Xor<L,T> |
map(Function<? super R,? extends T> mapper) |
R |
orElse(R value) |
Optional<R> |
right() |
String |
toString() |
public <T> T fold(Function<? super L,? extends T> mapLeft, Function<? super R,? extends T> mapRight)
Copyright © 2016. All rights reserved.