Class 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 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Keep

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