Package akka.stream.scaladsl
Class Keep$
- java.lang.Object
-
- akka.stream.scaladsl.Keep$
-
public class Keep$ extends java.lang.Object
Convenience 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 Instance Methods Concrete Methods Modifier and Type Method Description <L,R>
scala.Function2<L,R,scala.Tuple2<L,R>>both()
<L,R>
scala.Function2<L,R,L>left()
<L,R>
scala.Function2<L,R,NotUsed>none()
<L,R>
scala.Function2<L,R,R>right()
-
-
-
Field Detail
-
MODULE$
public static final Keep$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
left
public <L,R> scala.Function2<L,R,L> left()
-
right
public <L,R> scala.Function2<L,R,R> right()
-
both
public <L,R> scala.Function2<L,R,scala.Tuple2<L,R>> both()
-
none
public <L,R> scala.Function2<L,R,NotUsed> none()
-
-