Package akka.stream.scaladsl
Class Keep
- java.lang.Object
 - 
- akka.stream.scaladsl.Keep
 
 
- 
public class Keep extends java.lang.ObjectConvenience functions for often-encountered purposes like keeping only the left (first) or only the right (second) of two input values. 
- 
- 
Constructor Summary
Constructors Constructor Description Keep() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <L,R>
scala.Function2<L,R,scala.Tuple2<L,R>>both()static <L,R>
scala.Function2<L,R,L>left()static <L,R>
scala.Function2<L,R,NotUsed>none()static <L,R>
scala.Function2<L,R,R>right() 
 - 
 
- 
- 
Method Detail
- 
left
public static <L,R> scala.Function2<L,R,L> left()
 
- 
right
public static <L,R> scala.Function2<L,R,R> right()
 
- 
both
public static <L,R> scala.Function2<L,R,scala.Tuple2<L,R>> both()
 
- 
none
public static <L,R> scala.Function2<L,R,NotUsed> none()
 
 - 
 
 -