Class Directive.SingleValueTransformers<T>

  • Enclosing class:
    Directive<L>

    public static class Directive.SingleValueTransformers<T>
    extends scala.AnyVal
    "Standard" transformers for Directive1. Easier to use than tmap, tflatMap, etc. defined on Directive itself, because they provide transparent conversion from Tuple1.
    • Constructor Detail

      • SingleValueTransformers

        public SingleValueTransformers​(Directive<scala.Tuple1<T>> underlying)
    • Method Detail

      • underlying

        public Directive<scala.Tuple1<T>> underlying()
      • map

        public <R> Directive<java.lang.Object> map​(scala.Function1<T,​R> f,
                                                   Tupler<R> tupler)
      • require

        public Directive<scala.runtime.BoxedUnit> require​(scala.Function1<T,​java.lang.Object> predicate,
                                                          scala.collection.immutable.Seq<Rejection> rejections)
      • filter

        public Directive<scala.Tuple1<T>> filter​(scala.Function1<T,​java.lang.Object> predicate,
                                                 scala.collection.immutable.Seq<Rejection> rejections)
      • collect

        public <R> Directive<java.lang.Object> collect​(scala.PartialFunction<T,​R> pf,
                                                       scala.collection.immutable.Seq<Rejection> rejections,
                                                       Tupler<R> tupler)