Uses of Class
ratpack.func.Pair
-
Packages that use Pair Package Description ratpack.config Provides the ability to access configuration data from a variety of sources, such as YAML, JSON, properties files, system properties, and environment variables.ratpack.exec The execution management.ratpack.func -
-
Uses of Pair in ratpack.config
Methods in ratpack.config that return types with arguments of type Pair Modifier and Type Method Description Stream<Pair<String,String>>
EnvironmentParser. filter(Pair<String,String> entry)
Provides an opportunity to remove environment variables from parsing by the remainder of the pipeline.Methods in ratpack.config with parameters of type Pair Modifier and Type Method Description Stream<Pair<String,String>>
EnvironmentParser. filter(Pair<String,String> entry)
Provides an opportunity to remove environment variables from parsing by the remainder of the pipeline. -
Uses of Pair in ratpack.exec
Methods in ratpack.exec that return types with arguments of type Pair Modifier and Type Method Description default <O> Promise<Pair<O,T>>
Promise. flatLeft(Function<? super T,? extends Promise<O>> leftFunction)
Transforms the promised value to aPair
, with the value of the result of the given function as theleft
.default <O> Promise<Pair<T,O>>
Promise. flatRight(Function<? super T,? extends Promise<O>> rightFunction)
Transforms the promised value to aPair
, with the value of the result of the given function as theright
.default <O> Promise<Pair<O,T>>
Promise. left(Promise<O> left)
Transforms the promised value to aPair
, with the value of the given promise as theleft
.default <O> Promise<Pair<O,T>>
Promise. left(Function<? super T,? extends O> leftFunction)
Transforms the promised value to aPair
, with the result of the given function as theleft
.default <O> Promise<Pair<T,O>>
Promise. right(Promise<O> right)
Transforms the promised value to aPair
, with the value of the given promise as theright
.default <O> Promise<Pair<T,O>>
Promise. right(Function<? super T,? extends O> rightFunction)
Transforms the promised value to aPair
, with the result of the given function as theright
.default Promise<Pair<ExecResult<T>,Duration>>
Promise. timeResult()
-
Uses of Pair in ratpack.func
Methods in ratpack.func with type parameters of type Pair Modifier and Type Method Description static <L,P extends Pair<L,?>>
Function<P,L>Pair. unpackLeft()
Convenience function for returning the left item of a pair.static <R,P extends Pair<?,R>>
Function<P,R>Pair. unpackRight()
Convenience function for returning the right item of a pair.Methods in ratpack.func that return Pair Modifier and Type Method Description <T> Pair<T,R>
Pair. left(T newLeft)
Replaces the left item with the given item.<T> Pair<T,R>
Pair. mapLeft(Function<? super L,? extends T> function)
Creates a new pair, with the left item being the result of applying the given function to the left item ofthis
.<T> Pair<L,T>
Pair. mapRight(Function<? super R,? extends T> function)
Creates a new pair, with the right item being the result of applying the given function to the right item ofthis
.<T> Pair<Pair<T,L>,R>
Pair. nestLeft(T t)
Creates a new pair, withpair(t, this.left)
as the left item and the the right value ofthis
as the right.<T> Pair<L,Pair<T,R>>
Pair. nestRight(T t)
Creates a new pair, withpair(t, this.right)
as the right item and the the left value ofthis
as the left.static <L,R>
Pair<L,R>Pair. of(L left, R right)
Creates a new pair.static <L,R>
Pair<L,R>Pair. pair(L left, R right)
Creates a new pair.<T> Pair<T,Pair<L,R>>
Pair. pushLeft(T t)
Creates a new pair, withthis
as the right item and the given value as the left.<T> Pair<Pair<L,R>,T>
Pair. pushRight(T t)
Creates a new pair, withthis
as the left item and the given value as the right.<T> Pair<L,T>
Pair. right(T newRight)
Replaces the right item with the given item.Methods in ratpack.func that return types with arguments of type Pair Modifier and Type Method Description <T> Pair<Pair<T,L>,R>
Pair. nestLeft(T t)
Creates a new pair, withpair(t, this.left)
as the left item and the the right value ofthis
as the right.<T> Pair<L,Pair<T,R>>
Pair. nestRight(T t)
Creates a new pair, withpair(t, this.right)
as the right item and the the left value ofthis
as the left.<T> Pair<T,Pair<L,R>>
Pair. pushLeft(T t)
Creates a new pair, withthis
as the right item and the given value as the left.<T> Pair<Pair<L,R>,T>
Pair. pushRight(T t)
Creates a new pair, withthis
as the left item and the given value as the right.Method parameters in ratpack.func with type arguments of type Pair Modifier and Type Method Description <T> T
Pair. map(Function<? super Pair<L,R>,? extends T> function)
Applies the given function tothis
, returning the result.
-