| Package | Description |
|---|---|
| io.atlassian.fugue |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Pair<B,B> |
Pair.ap(Pair<A,A> aa,
Pair<Function<A,B>,Function<A,B>> ff)
Performs function application within an homogeneous pair (applicative
functor pattern).
|
static <A,B> Pair<B,B> |
Pair.map(Pair<A,A> aa,
Function<A,B> f)
Apply a function to both elements of an homogeneous pair.
|
static <A,B> Pair<A,B> |
Pair.pair(A left,
B right)
Factory method for static Pair growth.
|
static <A> Pair<Iterable<A>,Iterable<A>> |
Iterables.partition(Iterable<A> iterable,
Predicate<? super A> p)
Filter an
Iterable into a Pair of Iterable's. |
static <A,B> Pair<Iterable<A>,Iterable<B>> |
Iterables.unzip(Iterable<Pair<A,B>> pairs)
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Monoid<Pair<A,B>> |
Monoid.compose(Monoid<A> ma,
Monoid<B> mb)
Composes a monoid with another.
|
static <A,B> Semigroup<Pair<A,B>> |
Semigroup.compose(Semigroup<A> sa,
Semigroup<B> sb)
Composes a semigroup with another.
|
static <A> Function<Pair<A,?>,A> |
Pair.leftValue()
Function for accessing the left value of
pairs. |
static <A,B> BiFunction<A,B,Pair<A,B>> |
Pair.pairs()
Factory method for a Pair factory function.
|
static <B> Function<Pair<?,B>,B> |
Pair.rightValue()
Function for accessing the right value of
pairs. |
static <A,B> Iterable<Pair<A,B>> |
Iterables.zip(Iterable<A> as,
Iterable<B> bs)
Zips two iterables into a single iterable that produces
pairs. |
static <A,B> Iterable<Pair<A,B>> |
Pair.zip(Iterable<A> as,
Iterable<B> bs)
Zips two iterables into a single iterable that produces
pairs. |
static <A,B> Optional<Pair<A,B>> |
Pair.zip(Optional<A> oA,
Optional<B> oB)
Zips the two given optionals into an optional of a pair.
|
static <A> Iterable<Pair<A,Integer>> |
Iterables.zipWithIndex(Iterable<A> as)
Takes an Iterable, and returns an Iterable of a Pair of the original
element and its index starting at zero.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Pair<B,B> |
Pair.ap(Pair<A,A> aa,
Pair<Function<A,B>,Function<A,B>> ff)
Performs function application within an homogeneous pair (applicative
functor pattern).
|
static <A,B> Pair<B,B> |
Pair.ap(Pair<A,A> aa,
Pair<Function<A,B>,Function<A,B>> ff)
Performs function application within an homogeneous pair (applicative
functor pattern).
|
static <A,B> Pair<B,B> |
Pair.map(Pair<A,A> aa,
Function<A,B> f)
Apply a function to both elements of an homogeneous pair.
|
| Modifier and Type | Method and Description |
|---|---|
static <F,S,T extends S> |
Functions.fold(Function<Pair<S,F>,T> f,
T zero,
Iterable<? extends F> elements)
Apply f to each element in elements, with each application using the result
of the previous application as the other argument to f.
|
static <A,B,C> BiFunction<A,B,C> |
Functions.toBiFunction(Function<Pair<A,B>,C> fpair)
Converts a function that takes a pair of arguments to a function that takes
two arguments
|
static <A,B> Iterable<A> |
Iterables.unfold(Function<? super B,Option<Pair<A,B>>> f,
B seed)
Builds an Iterable from a seed value until
f returns none()
. |
static <A,B> Pair<Iterable<A>,Iterable<B>> |
Iterables.unzip(Iterable<Pair<A,B>> pairs)
|
Copyright © 2018 Atlassian. All rights reserved.