Uses of Class
io.atlassian.fugue.Pair
-
Packages that use Pair Package Description io.atlassian.fugue io.atlassian.fugue.optic io.atlassian.fugue.optic.law io.atlassian.fugue.optic.std -
-
Uses of Pair in io.atlassian.fugue
Fields in io.atlassian.fugue with type parameters of type Pair Modifier and Type Field Description private java.util.function.Function<? super B,Option<Pair<A,B>>>Iterables.UnfoldingIterable. fprivate java.util.function.Function<? super B,Option<Pair<A,B>>>Iterables.UnfoldingIterable.Iter. fMethods in io.atlassian.fugue that return Pair Modifier and Type Method Description static <A,B>
Pair<B,B>Pair. ap(Pair<A,A> aa, Pair<java.util.function.Function<A,B>,java.util.function.Function<A,B>> ff)Performs function application within an homogeneous pair (applicative functor pattern).<AA,BB>
Pair<AA,BB>Pair. bimap(java.util.function.Function<? super A,? extends AA> fLeft, java.util.function.Function<? super B,? extends BB> fRight)Applies functions to each of the left and right values to produce a new pair.<AA> Pair<AA,B>Pair. leftMap(java.util.function.Function<? super A,AA> fLeft)Applies a function to the left value to produce a new Pair.static <A,B>
Pair<B,B>Pair. map(Pair<A,A> aa, java.util.function.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<java.lang.Iterable<A>,java.lang.Iterable<A>>Iterables. partition(java.lang.Iterable<A> iterable, java.util.function.Predicate<? super A> p)Filter anIterableinto aPairofIterable's.<BB> Pair<A,BB>Pair. rightMap(java.util.function.Function<? super B,BB> fRight)Applies a function to the right value to produce a new Pair.Pair<B,A>Pair. swap()static <A,B>
Pair<java.lang.Iterable<A>,java.lang.Iterable<B>>Iterables. unzip(java.lang.Iterable<Pair<A,B>> pairs)Methods in io.atlassian.fugue that return types with arguments of type Pair Modifier and Type Method 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> java.util.function.Function<Pair<A,?>,A>Pair. leftValue()Function for accessing the left value ofpairs.static <A,B>
java.util.function.BiFunction<A,B,Pair<A,B>>Pair. pairs()Factory method for a Pair factory function.static <B> java.util.function.Function<Pair<?,B>,B>Pair. rightValue()Function for accessing the right value ofpairs.static <A,B>
java.lang.Iterable<Pair<A,B>>Iterables. zip(java.lang.Iterable<A> as, java.lang.Iterable<B> bs)Zips two iterables into a single iterable that producespairs.static <A,B>
java.lang.Iterable<Pair<A,B>>Pair. zip(java.lang.Iterable<A> as, java.lang.Iterable<B> bs)Zips two iterables into a single iterable that producespairs.static <A,B>
java.util.Optional<Pair<A,B>>Pair. zip(java.util.Optional<A> oA, java.util.Optional<B> oB)Zips the two given optionals into an optional of a pair.static <A> java.lang.Iterable<Pair<A,java.lang.Integer>>Iterables. zipWithIndex(java.lang.Iterable<A> as)Takes an Iterable, and returns an Iterable of a Pair of the original element and its index starting at zero.Methods in io.atlassian.fugue with parameters of type Pair Modifier and Type Method Description static <A,B>
Pair<B,B>Pair. ap(Pair<A,A> aa, Pair<java.util.function.Function<A,B>,java.util.function.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, java.util.function.Function<A,B> f)Apply a function to both elements of an homogeneous pair.Method parameters in io.atlassian.fugue with type arguments of type Pair Modifier and Type Method Description static <F,S,T extends S>
TFunctions. fold(java.util.function.Function<Pair<S,F>,T> f, T zero, java.lang.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>
java.util.function.BiFunction<A,B,C>Functions. toBiFunction(java.util.function.Function<Pair<A,B>,C> fpair)Converts a function that takes a pair of arguments to a function that takes two argumentsstatic <A,B>
java.lang.Iterable<A>Iterables. unfold(java.util.function.Function<? super B,Option<Pair<A,B>>> f, B seed)Builds an Iterable from a seed value untilfreturnsnone().static <A,B>
Pair<java.lang.Iterable<A>,java.lang.Iterable<B>>Iterables. unzip(java.lang.Iterable<Pair<A,B>> pairs)Constructor parameters in io.atlassian.fugue with type arguments of type Pair Constructor Description Iter(java.util.function.Function<? super B,Option<Pair<A,B>>> f, B seed)UnfoldingIterable(java.util.function.Function<? super B,Option<Pair<A,B>>> f, B seed) -
Uses of Pair in io.atlassian.fugue.optic
Methods in io.atlassian.fugue.optic that return types with arguments of type Pair Modifier and Type Method Description <B> Getter<Pair<S,B>,Pair<A,B>>Getter. first()<B> Getter<Pair<S,B>,Pair<A,B>>Getter. first()<C> Iso<Pair<S,C>,Pair<A,C>>Iso. first()<C> Iso<Pair<S,C>,Pair<A,C>>Iso. first()<C> Optional<Pair<S,C>,Pair<A,C>>Optional. first()<C> Optional<Pair<S,C>,Pair<A,C>>Optional. first()<C> PIso<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>PIso. first()<C> PIso<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>PIso. first()<C> PIso<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>PIso. first()<C> PIso<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>PIso. first()<C> POptional<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>POptional. first()<C> POptional<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>POptional. first()<C> POptional<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>POptional. first()<C> POptional<Pair<S,C>,Pair<T,C>,Pair<A,C>,Pair<B,C>>POptional. first()java.util.function.Function<S,Pair<S,S>>Lens. modifyPairF(java.util.function.Function<A,Pair<A,A>> f)java.util.function.Function<S,Pair<S,S>>Optional. modifyPairF(java.util.function.Function<A,Pair<A,A>> f)java.util.function.Function<S,Pair<T,T>>PIso. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPIsowith an Applicative functionabstract java.util.function.Function<S,Pair<T,T>>PLens. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPLenswith an Applicative functionabstract java.util.function.Function<S,Pair<T,T>>POptional. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPOptionalwith an Applicative functionjava.util.function.Function<S,Pair<T,T>>PPrism. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPPrismwith an Applicative functionabstract java.util.function.Function<S,Pair<T,T>>PTraversal. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPTraversalwith an Applicative functionjava.util.function.Function<S,Pair<S,S>>Traversal. modifyPairF(java.util.function.Function<A,Pair<A,A>> f)<S1,A1>
Getter<Pair<S,S1>,Pair<A,A1>>Getter. product(Getter<S1,A1> other)pair two disjointGetter<S1,A1>
Getter<Pair<S,S1>,Pair<A,A1>>Getter. product(Getter<S1,A1> other)pair two disjointGetter<S1,A1>
Iso<Pair<S,S1>,Pair<A,A1>>Iso. product(Iso<S1,A1> other)pair two disjointIso<S1,A1>
Iso<Pair<S,S1>,Pair<A,A1>>Iso. product(Iso<S1,A1> other)pair two disjointIso<S1,T1,A1,B1>
PIso<Pair<S,S1>,Pair<T,T1>,Pair<A,A1>,Pair<B,B1>>PIso. product(PIso<S1,T1,A1,B1> other)pair two disjointPIso<S1,T1,A1,B1>
PIso<Pair<S,S1>,Pair<T,T1>,Pair<A,A1>,Pair<B,B1>>PIso. product(PIso<S1,T1,A1,B1> other)pair two disjointPIso<S1,T1,A1,B1>
PIso<Pair<S,S1>,Pair<T,T1>,Pair<A,A1>,Pair<B,B1>>PIso. product(PIso<S1,T1,A1,B1> other)pair two disjointPIso<S1,T1,A1,B1>
PIso<Pair<S,S1>,Pair<T,T1>,Pair<A,A1>,Pair<B,B1>>PIso. product(PIso<S1,T1,A1,B1> other)pair two disjointPIso<B> Getter<Pair<B,S>,Pair<B,A>>Getter. second()<B> Getter<Pair<B,S>,Pair<B,A>>Getter. second()<C> Iso<Pair<C,S>,Pair<C,A>>Iso. second()<C> Iso<Pair<C,S>,Pair<C,A>>Iso. second()<C> Optional<Pair<C,S>,Pair<C,A>>Optional. second()<C> Optional<Pair<C,S>,Pair<C,A>>Optional. second()<C> PIso<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>PIso. second()<C> PIso<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>PIso. second()<C> PIso<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>PIso. second()<C> PIso<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>PIso. second()<C> POptional<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>POptional. second()<C> POptional<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>POptional. second()<C> POptional<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>POptional. second()<C> POptional<Pair<C,S>,Pair<C,T>,Pair<C,A>,Pair<C,B>>POptional. second()Method parameters in io.atlassian.fugue.optic with type arguments of type Pair Modifier and Type Method Description java.util.function.Function<S,Pair<S,S>>Lens. modifyPairF(java.util.function.Function<A,Pair<A,A>> f)java.util.function.Function<S,Pair<S,S>>Optional. modifyPairF(java.util.function.Function<A,Pair<A,A>> f)java.util.function.Function<S,Pair<T,T>>PIso. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPIsowith an Applicative functionabstract java.util.function.Function<S,Pair<T,T>>PLens. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPLenswith an Applicative functionabstract java.util.function.Function<S,Pair<T,T>>POptional. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPOptionalwith an Applicative functionjava.util.function.Function<S,Pair<T,T>>PPrism. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPPrismwith an Applicative functionabstract java.util.function.Function<S,Pair<T,T>>PTraversal. modifyPairF(java.util.function.Function<A,Pair<B,B>> f)modify polymorphically the target of aPTraversalwith an Applicative functionjava.util.function.Function<S,Pair<S,S>>Traversal. modifyPairF(java.util.function.Function<A,Pair<A,A>> f) -
Uses of Pair in io.atlassian.fugue.optic.law
Methods in io.atlassian.fugue.optic.law that return types with arguments of type Pair Modifier and Type Method Description IsEq<Pair<S,S>>IsoLaws. modifyPairFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Pair<S,S>>LensLaws. modifyPairFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Pair<S,S>>OptionalLaws. modifyPairFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Pair<S,S>>PrismLaws. modifyPairFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Pair<S,S>>TraversalLaws. modifyPairFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_) -
Uses of Pair in io.atlassian.fugue.optic.std
Methods in io.atlassian.fugue.optic.std that return types with arguments of type Pair Modifier and Type Method Description static <A,B>
Lens<Pair<A,B>,B>PairOptics. _right()static <A,B>
Lens<Pair<A,B>,A>PairOptics. left()static <A,B>
Iso<Pair<A,B>,java.util.Map.Entry<A,B>>PairOptics. pairToEntry()static <A,B,C>
PLens<Pair<A,B>,Pair<C,B>,A,C>PairOptics. pLeft()static <A,B,C>
PLens<Pair<A,B>,Pair<C,B>,A,C>PairOptics. pLeft()static <A,B,C>
PLens<Pair<A,B>,Pair<A,C>,B,C>PairOptics. pRight()static <A,B,C>
PLens<Pair<A,B>,Pair<A,C>,B,C>PairOptics. pRight()
-