Class Keep$

java.lang.Object
org.apache.pekko.stream.scaladsl.Keep$

public class Keep$ extends Object
Convenience functions for often-encountered purposes like keeping only the left (first) or only the right (second) of two input values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Keep$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <L, R> scala.Function2<L,R,scala.Tuple2<L,R>>
     
    <L, R> scala.Function2<L,R,L>
     
    <L, R> scala.Function2<L,R,NotUsed>
     
    <L, R> scala.Function2<L,R,R>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final Keep$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • Keep$

      public Keep$()
  • Method Details

    • 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()