Package io.ultreia.java4all.util
Interface TwoSideContext<S extends TwoSide,O>
-
- All Known Subinterfaces:
LeftOrRightContext<O>
- All Known Implementing Classes:
LeftOrRightContext.LeftOrRightContextImpl,TwoSideContext.TwoSideContextImpl
public interface TwoSideContext<S extends TwoSide,O>Created at 19/03/2024.- Since:
- 1.1.13
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTwoSideContext.TwoSideContextImpl<S extends TwoSide,O>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(Consumer<O> consumer)default <V,X>
TwoSideContext<S,V>apply(TwoSideContext<S,X> otherContext, BiFunction<X,O,V> function)default <V> TwoSideContext<S,V>apply(Function<O,V> function)default TwoSideContext<S,O>flip()Oleft()static <S extends TwoSide,O>
TwoSideContext<S,O>of(O left, O right)default OonOppositeSide(S side)default OonSameSide(S side)Oright()
-
-
-
Method Detail
-
of
static <S extends TwoSide,O> TwoSideContext<S,O> of(O left, O right)
-
left
O left()
-
right
O right()
-
apply
default <V> TwoSideContext<S,V> apply(Function<O,V> function)
-
apply
default <V,X> TwoSideContext<S,V> apply(TwoSideContext<S,X> otherContext, BiFunction<X,O,V> function)
-
flip
default TwoSideContext<S,O> flip()
-
-