- accept(A) - Method in interface io.atlassian.fugue.Effect
-
Deprecated.
Adapt to the Java 8 interface.
- addAll(Collection<A>, Iterable<? extends A>) - Static method in class io.atlassian.fugue.Iterables
-
Add all the elements of the iterable to the collection
- all(Iterable<? extends A>, Predicate<? super A>) - Static method in class io.atlassian.fugue.Iterables
-
Check if all elements in the input iterable match the input predicate
- alwaysFalse() - Static method in class io.atlassian.fugue.Suppliers
-
Supplies false.
- alwaysNull() - Static method in class io.atlassian.fugue.Suppliers
-
Always returns null.
- alwaysTrue() - Static method in class io.atlassian.fugue.Suppliers
-
Supplies true.
- any(Iterable<? extends A>, Predicate<? super A>) - Static method in class io.atlassian.fugue.Iterables
-
Check if the iterable contains any elements that match the predicate.
- ap(Either<L, Function<R, X>>) - Method in class io.atlassian.fugue.Either
-
Function application on this projection's value.
- ap(Either<Function<L, X>, R>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
Function application on this projection's value.
- ap(Either<L, Function<R, X>>) - Method in class io.atlassian.fugue.Either.RightProjection
-
Function application on this projection's value.
- ap(Function<C, A>, Function<C, Function<A, B>>) - Static method in class io.atlassian.fugue.Functions
-
Performs function application within a higher-order function (applicative
functor pattern).
- ap(Iterable<A>, Iterable<Function<A, B>>) - Static method in class io.atlassian.fugue.Iterables
-
Performs function application within an iterable (applicative functor
pattern).
- ap(Option<A>, Option<Function<A, B>>) - Static method in class io.atlassian.fugue.Options
-
Applies an option of A to an option of a function with input type A and
result type B and return an option of B.
- ap(Pair<A, A>, Pair<Function<A, B>, Function<A, B>>) - Static method in class io.atlassian.fugue.Pair
-
Performs function application within an homogeneous pair (applicative
functor pattern).
- ap(Supplier<A>, Supplier<Function<A, B>>) - Static method in class io.atlassian.fugue.Suppliers
-
Performs function application within a supplier (applicative functor
pattern).
- append(A, A) - Method in interface io.atlassian.fugue.Semigroup
-
Combine the two given arguments.
- Applicant<A> - Interface in io.atlassian.fugue
-
A thing upon which side-effects may be applied.
- apply(A) - Method in interface io.atlassian.fugue.Checked.Function
-
- apply(A) - Method in interface io.atlassian.fugue.Effect
-
Deprecated.
Perform the side-effect.
- apply(Either<L, Function<R, X>>) - Method in class io.atlassian.fugue.Either
-
- apply(Either<Function<L, X>, R>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
- apply(Either<L, Function<R, X>>) - Method in class io.atlassian.fugue.Either.RightProjection
-
- apply(A) - Static method in class io.atlassian.fugue.Functions
-
Function that takes another function and applies it to the argument.
- apply(Supplier<A>) - Static method in class io.atlassian.fugue.Functions
-
Function that takes another function and applies it to the argument
supplied by the parameter.
- attempt() - Method in interface io.atlassian.fugue.Checked.Supplier
-
- failure(Exception) - Static method in class io.atlassian.fugue.Try
-
Creates a new failure
- filter(Predicate<? super R>) - Method in class io.atlassian.fugue.Either
-
Returns None if this is a left or if the given predicate
p does not hold for the contained value, otherwise, returns a
right in Some.
- filter(Predicate<? super L>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
Returns None if this projection has no value or if the given
predicate p does not hold for the value, otherwise, returns
a left in Some.
- filter(Predicate<? super R>) - Method in class io.atlassian.fugue.Either.RightProjection
-
Returns None if this projection has no value or if the given
predicate p does not hold for the value, otherwise, returns
a right in Some.
- filter(Iterable<A>, Predicate<? super A>) - Static method in class io.atlassian.fugue.Iterables
-
Remove elements from the input iterable for which the predicate returns
false
- filter(Predicate<? super A>) - Method in class io.atlassian.fugue.Option
-
Returns this
Option if it is nonempty
and applying the predicate to this option's value returns
true.
- filterLeft(Iterable<Either<L, R>>) - Static method in class io.atlassian.fugue.Eithers
-
Takes an
Iterable of
eithers, and collects
the left values of every either which has a left value
- filterNone(Iterable<Option<A>>) - Static method in class io.atlassian.fugue.Options
-
Filter out undefined options.
- filterOrElse(Predicate<? super R>, Supplier<? extends L>) - Method in class io.atlassian.fugue.Either
-
Return a Right if this is a Right and the
contained values satisfies the given predicate.
- filterOrElse(Predicate<? super L>, Supplier<? extends R>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
Return a Left if this is a Left and the
contained values satisfies the given predicate.
- filterOrElse(Predicate<? super R>, Supplier<? extends L>) - Method in class io.atlassian.fugue.Either.RightProjection
-
Return a Right if this is a Right and the
contained values satisfies the given predicate.
- filterOrElse(Predicate<? super A>, Supplier<Exception>) - Method in class io.atlassian.fugue.Try
-
Return a Success if this is a Success and the
contained values satisfies the given predicate.
- filterRight(Iterable<Either<L, R>>) - Static method in class io.atlassian.fugue.Eithers
-
Takes an
Iterable of
eithers, and collects
the right values of every either which has a left value
- find(Iterable<Option<A>>) - Static method in class io.atlassian.fugue.Options
-
Find the first option that
isDefined, or if there aren't any, then none.
- findFirst(Iterable<? extends T>, Predicate<? super T>) - Static method in class io.atlassian.fugue.Iterables
-
Finds the first item that matches the predicate.
- findFirst(Predicate<? super A>) - Static method in class io.atlassian.fugue.Iterables
-
- first(Iterable<A>) - Static method in class io.atlassian.fugue.Iterables
-
If as is empty, returns none().
- first() - Static method in class io.atlassian.fugue.Semigroups
-
Return the first value, ignore the second
- firstOption() - Static method in class io.atlassian.fugue.Monoids
-
A monoid for options (that take the first available value).
- flatMap(Function<? super R, Either<LL, X>>) - Method in class io.atlassian.fugue.Either
-
Binds the given function across the right hand side value if it is one.
- flatMap(Function<? super L, Either<X, RR>>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
Binds the given function across this projection's value if it has one.
- flatMap(Function<? super R, Either<LL, X>>) - Method in class io.atlassian.fugue.Either.RightProjection
-
Binds the given function across this projection's value if it has one.
- flatMap(Iterable<A>, Function<? super A, ? extends Iterable<? extends B>>) - Static method in class io.atlassian.fugue.Iterables
-
Applies f to each element of collection, then concatenates
the result.
- flatMap(Function<? super A, ? extends Option<? extends B>>) - Method in class io.atlassian.fugue.Option
-
Apply f to the value if defined.
- flatMap(Function<? super A, Try<B>>) - Method in class io.atlassian.fugue.Try
-
Binds the given function across the success value if it is one.
- flatten() - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the values wrapped within the option.
- flatten(Collector<A, B, C>) - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the values wrapped within the option.
- flatten(Iterable<Option<A>>) - Static method in class io.atlassian.fugue.Options
-
Flattens an
Iterable of
options into an
iterable of the things, filtering out any nones.
- flatten(Try<Try<A>>) - Static method in class io.atlassian.fugue.Try
-
Reduces a nested Try by a single level
- flip(Function<A, Function<B, C>>) - Static method in class io.atlassian.fugue.Functions
-
Transforms a function from A -> (B -> C) into a function from
B -> (A -> C).
- fold(Function<? super L, V>, Function<? super R, V>) - Method in class io.atlassian.fugue.Either
-
Applies the function to the wrapped value, applying ifLeft if this is a
Left and ifRight if this is a Right.
- fold(BiFunction<? super T, F, T>, T, Iterable<? extends F>) - Static method in class io.atlassian.fugue.Functions
-
Apply f to each element in elements, with each application using the result
of the previous application as the other argument to f.
- fold(Function<Pair<S, F>, T>, T, Iterable<? extends F>) - Static method in class io.atlassian.fugue.Functions
-
Apply f to each element in elements, with each application using the result
of the previous application as the other argument to f.
- fold(Supplier<? extends B>, Function<? super A, ? extends B>) - Method in class io.atlassian.fugue.Option
-
If this is a some value apply the some function, otherwise get the None
value.
- fold(Function<? super Exception, B>, Function<A, B>) - Method in class io.atlassian.fugue.Try
-
Applies the function to the wrapped value, applying failureF it this is a
Failure and successF if this is a Success.
- forall(Predicate<? super R>) - Method in class io.atlassian.fugue.Either
-
Returns true if it is a left or the result of the application
of the given predicate on the contained value.
- forall(Predicate<? super A>) - Method in interface io.atlassian.fugue.Maybe
-
Returns
true if empty or the result of the
application of the given function to the value.
- forall(Predicate<? super A>) - Method in class io.atlassian.fugue.Option
-
Returns
true if empty or the result of the
application of the given function to the value.
- forEach(Consumer<? super A>) - Method in interface io.atlassian.fugue.Applicant
-
Perform the given
Consumer (side-effect) for
each contained element.
- foreach(Effect<? super A>) - Method in interface io.atlassian.fugue.Effect.Applicant
-
- foreach(Effect<? super R>) - Method in class io.atlassian.fugue.Either
-
- forEach(Consumer<? super R>) - Method in class io.atlassian.fugue.Either
-
Perform the given side-effect for the contained element if it is a right
- forEach(Consumer<? super A>) - Method in class io.atlassian.fugue.Try
-
- forMap(Map<A, B>) - Static method in class io.atlassian.fugue.Functions
-
Create a function that performs a map lookup returning None for null
If you do not need a nondefaulted return result using a method reference is
preferred map::get
- forMapWithDefault(Map<A, B>, B) - Static method in class io.atlassian.fugue.Functions
-
Create a function that performs a map lookup supplying a default value when
a Map#get returns null
If you do not need a defaulted return result using a method reference is
preferred map::get
- fromConsumer(Consumer<D>) - Static method in class io.atlassian.fugue.Functions
-
Get a function (with
Unit return type) that calls the consumer for
all inputs.
- fromFunction(Function<? super A, ? extends B>, A) - Static method in class io.atlassian.fugue.Suppliers
-
Constantly applies the input value to the supplied function, and returns
the result.
- fromOption(Option<A>) - Static method in class io.atlassian.fugue.Suppliers
-
Turns an Option into a supplier, but throws an exception if undefined.
- fromOptional(Optional<A>) - Static method in class io.atlassian.fugue.Option
-
- FugueCollectors - Class in io.atlassian.fugue
-
- FugueCollectors() - Constructor for class io.atlassian.fugue.FugueCollectors
-
- function(Monoid<B>) - Static method in class io.atlassian.fugue.Monoids
-
A monoid for functions.
- function(Semigroup<B>) - Static method in class io.atlassian.fugue.Semigroups
-
A semigroup for functions.
- Functions - Class in io.atlassian.fugue
-
Utility methods for Functions
- get() - Method in interface io.atlassian.fugue.Checked.Supplier
-
- get() - Method in class io.atlassian.fugue.Either.LeftProjection
-
- get() - Method in class io.atlassian.fugue.Either.RightProjection
-
- get() - Method in interface io.atlassian.fugue.Maybe
-
Get the value if defined.
- getOr(Supplier<? extends R>) - Method in class io.atlassian.fugue.Either
-
Get the value if it is a right or call the supplier and return its value if
not.
- getOr(Supplier<? extends A>) - Method in interface io.atlassian.fugue.Maybe
-
Get the value
if defined or call the supplier and
return its value if not.
- getOr(Supplier<? extends A>) - Method in class io.atlassian.fugue.Option
-
Get the value
if defined or call the supplier and
return its value if not.
- getOrElse(Supplier<? extends R>) - Method in class io.atlassian.fugue.Either
-
- getOrElse(X) - Method in class io.atlassian.fugue.Either
-
Get the value if it is a right, otherwise returns other.
- getOrElse(B) - Method in interface io.atlassian.fugue.Maybe
-
Get the value if defined, otherwise returns other.
- getOrElse(Supplier<? extends A>) - Method in interface io.atlassian.fugue.Maybe
-
- getOrElse(B) - Method in class io.atlassian.fugue.Option
-
Get the value if defined, otherwise returns other.
- getOrElse(Supplier<? extends A>) - Method in class io.atlassian.fugue.Option
-
Deprecated.
- getOrElse(Supplier<A>) - Method in class io.atlassian.fugue.Try
-
Returns the contained value if this is a success otherwise call the
supplier and return its value.
- getOrError(Supplier<String>) - Method in class io.atlassian.fugue.Either
-
Get the contained value or throws an error with the supplied message if
left.
- getOrError(Supplier<String>) - Method in interface io.atlassian.fugue.Maybe
-
Get the value or throws an error with the supplied message if not defined.
- getOrNull() - Method in class io.atlassian.fugue.Either
-
Get the value if it is right or null if not.
- getOrNull() - Method in interface io.atlassian.fugue.Maybe
-
Get the value if defined or null if not.
- getOrNull() - Method in class io.atlassian.fugue.Option
-
Get the value if defined or null if not.
- getOrThrow(Supplier<X>) - Method in class io.atlassian.fugue.Either
-
Get the contained value or throws the supplied throwable if left
- getOrThrow(Either<X, A>) - Static method in class io.atlassian.fugue.Eithers
-
Simplifies extracting a value or throwing a checked exception from an
Either.
- getOrThrow(Supplier<X>) - Method in interface io.atlassian.fugue.Maybe
-
Get the value or throws the supplied throwable if not defined.
- identity() - Static method in class io.atlassian.fugue.Functions
-
Returns the identity function.
- intAddition - Static variable in class io.atlassian.fugue.Monoids
-
A monoid that adds integers.
- intersperse(Iterable<? extends A>, A) - Static method in class io.atlassian.fugue.Iterables
-
Intersperse an element between all the elements in an iterable.
- intersperse(Iterable<? extends A>, Supplier<A>) - Static method in class io.atlassian.fugue.Iterables
-
Intersperse an element between all the elements in an iterable.
- intersperse(Iterable<? extends A>, A) - Method in interface io.atlassian.fugue.Monoid
-
Intersperses the given value between each two elements of the collection,
and sums the result.
- intMaximum - Static variable in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the maximum of integers.
- intMinimum - Static variable in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the minimum of integers.
- intMultiplication - Static variable in class io.atlassian.fugue.Monoids
-
A monoid that multiplies integers.
- io.atlassian.fugue - package io.atlassian.fugue
-
- io.atlassian.fugue.law - package io.atlassian.fugue.law
-
- isDefined() - Method in class io.atlassian.fugue.Either.LeftProjection
-
- isDefined() - Method in class io.atlassian.fugue.Either.RightProjection
-
- isDefined() - Method in interface io.atlassian.fugue.Maybe
-
If the type contains a value return true.
- isEmpty() - Static method in class io.atlassian.fugue.Iterables
-
Predicate that checks if an iterable is empty.
- isEmpty() - Method in interface io.atlassian.fugue.Maybe
-
If the type does not contain a value return true.
- isEmpty() - Method in class io.atlassian.fugue.Option
-
If the type does not contain a value return true.
- IsEq<A> - Class in io.atlassian.fugue.law
-
Represents two values of the same type that are expected to be equal.
- IsEq(A, A) - Constructor for class io.atlassian.fugue.law.IsEq
-
Build an equality instance
- isEq(A, A) - Static method in class io.atlassian.fugue.law.IsEq
-
Two equal elements
- isFailure() - Method in class io.atlassian.fugue.Try
-
Returns true if this failure, otherwise false
- isInstanceOf(Class<B>) - Static method in class io.atlassian.fugue.Functions
-
Partial Function that does a type check and matches if the value is of the
right type.
- isLeft() - Method in class io.atlassian.fugue.Either
-
Returns true if this either is a left, false
otherwise.
- isLeft() - Static method in class io.atlassian.fugue.Eithers
-
A predicate that tests if the supplied either is a left.
- isRight() - Method in class io.atlassian.fugue.Either
-
Returns true if this either is a right, false
otherwise.
- isRight() - Static method in class io.atlassian.fugue.Eithers
-
A predicate that tests if the supplied either is a right.
- isSuccess() - Method in class io.atlassian.fugue.Try
-
Returns true if this success, otherwise false
- iterable(A...) - Static method in class io.atlassian.fugue.Iterables
-
Creates an Iterable from the underlying array of elements.
- iterable() - Static method in class io.atlassian.fugue.Monoids
-
A monoid for iterables.
- Iterables - Class in io.atlassian.fugue
-
Contains static utility methods that operate on or return objects of type
{code}Iterable{code}.
- iterate(Function<? super A, ? extends A>, A) - Static method in class io.atlassian.fugue.Iterables
-
Returns an infinite Iterable constructed by applying the given iteration
function starting at the given value.
- iterator() - Method in interface io.atlassian.fugue.Maybe
-
Return an iterator for this type.
- iterator() - Method in class io.atlassian.fugue.Option
-
Return an iterator for this type.
- iterator() - Method in class io.atlassian.fugue.Try
-
Return an iterator for this type.
- last() - Static method in class io.atlassian.fugue.Semigroups
-
Return the last value, ignore the first
- lastOption() - Static method in class io.atlassian.fugue.Monoids
-
A monoid for options that take the last available value.
- left(L) - Static method in class io.atlassian.fugue.Either
-
left.
- left() - Method in class io.atlassian.fugue.Either
-
Projects this either as a left.
- left() - Method in class io.atlassian.fugue.Pair
-
Accessor method for the left value of the pair.
- leftMap(Function<? super L, X>) - Method in class io.atlassian.fugue.Either
-
Map the given function across the left hand side value if it is one.
- leftMapper() - Static method in class io.atlassian.fugue.Eithers
-
A function that maps an either to an option of its left type.
- leftOr(Function<R, ? extends L>) - Method in class io.atlassian.fugue.Either
-
If this is a left return the contained value, else return the result of
applying rightTransformer on right
- leftValue() - Static method in class io.atlassian.fugue.Pair
-
Function for accessing the left value of
pairs.
- lhs() - Method in class io.atlassian.fugue.law.IsEq
-
Access the left element
- lift() - Method in interface io.atlassian.fugue.Checked.Function
-
- lift(Checked.Function<A, B, E>) - Static method in class io.atlassian.fugue.Checked
-
Lifts a function that potentially throws into a function that either
returns a Success of the value or a failure containing the thrown
exception.
- lift(Function<A, B>) - Static method in class io.atlassian.fugue.Options
-
Lifts a function that takes an A and returns a B into a function that takes
an option of A and returns an option of B.
- lift() - Static method in class io.atlassian.fugue.Options
-
Returns a function that will lift a function that takes an A and returns a
B into a function that takes an option of A and returns an option of B.
- lift(Predicate<? super A>) - Static method in class io.atlassian.fugue.Options
-
Lifts a predicate that takes an A into a predicate that takes an option of
A.
- lift2(BiFunction<A, B, C>) - Static method in class io.atlassian.fugue.Options
-
Lifts a function that takes an A and a B and returns a C into a function
that takes an option of A and an option of B and returns an option of C.
- lift2() - Static method in class io.atlassian.fugue.Options
-
Returns a function that will lift a function that takes an A and a B and
returns a C into a function that takes an option of A and an option of B
and returns an option of C.
- list() - Static method in class io.atlassian.fugue.Monoids
-
A monoid for lists.
- longAddition - Static variable in class io.atlassian.fugue.Monoids
-
A monoid that adds longs.
- longMaximum - Static variable in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the maximum of longs.
- longMinimum - Static variable in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the minimum of longs.
- longMultiplication - Static variable in class io.atlassian.fugue.Monoids
-
A monoid that multiplies longs.
- makeString(Iterable<? extends A>, String, String, String, int) - Static method in class io.atlassian.fugue.Iterables
-
Pretty print an Iterable.
- makeString(Iterable<? extends A>, String, String, String) - Static method in class io.atlassian.fugue.Iterables
-
Pretty print an Iterable.
- map(Function<? super L, X>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
Map the given function across this projection's value if it has one.
- map(Function<? super R, X>) - Method in class io.atlassian.fugue.Either
-
Map the given function across the right hand side value if it is one.
- map(Function<? super R, X>) - Method in class io.atlassian.fugue.Either.RightProjection
-
Map the given function across this projection's value if it has one.
- map(Iterable<A>, Function<? super A, ? extends B>) - Static method in class io.atlassian.fugue.Iterables
-
Apply the input function to each of the elements of the input iterable
returning a new iterable
- map(Function<? super A, ? extends B>) - Method in class io.atlassian.fugue.Option
-
Apply f to the value if defined.
- map(Pair<A, A>, Function<A, B>) - Static method in class io.atlassian.fugue.Pair
-
Apply a function to both elements of an homogeneous pair.
- map(Function<? super A, ? extends B>) - Method in class io.atlassian.fugue.Try
-
Maps the given function to the value from this `Success` or returns this
unchanged if a `Failure`.
- mapNullToOption(Function<? super A, ? extends B>) - Static method in class io.atlassian.fugue.Functions
-
Maps a function that returns nulls into a Partial function that returns an
Option of the result.
- match(BiFunction<A, A, R>) - Method in class io.atlassian.fugue.law.IsEq
-
Function to use for comparison of two equal elements
- matches(Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>) - Static method in class io.atlassian.fugue.Functions
-
Creates a stack of matcher functions and returns the first result that
matches.
- matches(Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>) - Static method in class io.atlassian.fugue.Functions
-
Creates a stack of matcher functions and returns the first result that
matches.
- matches(Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>) - Static method in class io.atlassian.fugue.Functions
-
Creates a stack of matcher functions and returns the first result that
matches.
- matches(Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>, Function<? super A, ? extends Option<? extends B>>...) - Static method in class io.atlassian.fugue.Functions
-
Creates a stack of matcher functions and returns the first result that
matches.
- max(Comparator<A>) - Static method in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the maximum of by a comparator.
- max() - Static method in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the maximum of comparable values.
- Maybe<A> - Interface in io.atlassian.fugue
-
Implemented by things that may or may not contain a value.
- memoize(Iterable<A>) - Static method in class io.atlassian.fugue.Iterables
-
Makes a lazy copy of xs.
- memoize(Supplier<A>) - Static method in class io.atlassian.fugue.Suppliers
-
A supplier that memoize the value return by another
Supplier, whose
Supplier.get() method is guaranteed to be call
at most once.
- merge(Either<T, T>) - Static method in class io.atlassian.fugue.Eithers
-
Extracts an object from an Either, regardless of the side in which it is
stored, provided both sides contain the same type.
- mergeSorted(Iterable<? extends Iterable<A>>) - Static method in class io.atlassian.fugue.Iterables
-
Merge a number of already sorted collections of elements into a single
collection of elements, using the elements natural ordering.
- mergeSorted(Iterable<? extends Iterable<A>>, Comparator<A>) - Static method in class io.atlassian.fugue.Iterables
-
Merge a number of already sorted collections of elements into a single
collection of elements.
- min(Comparator<A>) - Static method in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the minimum of by a comparator.
- min() - Static method in class io.atlassian.fugue.Semigroups
-
A semigroup that yields the minimum of comparable values.
- Monoid<A> - Interface in io.atlassian.fugue
-
A Monoid is an algebraic structure consisting of an associative binary
operation across the values of a given type (a monoid is a
Semigroup)
and an identity element for this operation.
- MonoidLaws<A> - Class in io.atlassian.fugue.law
-
Laws for a monoid
- MonoidLaws(Monoid<A>) - Constructor for class io.atlassian.fugue.law.MonoidLaws
-
Build a law instance to check monoid properties
- monoidLeftIdentity(A) - Method in class io.atlassian.fugue.law.MonoidLaws
-
If the zero of your monoid is combine with an element of the type your
monoid works with the result should be that element.
- monoidRightIdentity(A) - Method in class io.atlassian.fugue.law.MonoidLaws
-
If an element of the type your monoid works with is combined with the zero
of your monoid result should be that element.
- Monoids - Class in io.atlassian.fugue
-
- multiply(int, A) - Method in interface io.atlassian.fugue.Monoid
-
Returns a value summed n times (a + a + ...
- multiply1p(int, A) - Method in interface io.atlassian.fugue.Monoid
-
- multiply1p(int, A) - Method in interface io.atlassian.fugue.Semigroup
-
Returns a value summed n + 1 times (
a + a + ...
- multiply1pEqualRepeatedAppend(int, A) - Method in class io.atlassian.fugue.law.SemigroupLaws
-
- multiplyEqualRepeatedAppend(int, A) - Method in class io.atlassian.fugue.law.MonoidLaws
-
The multiply function of your monoid must be equal to the sum function
called with an iterable containing n copies of the input type.
- Semigroup<A> - Interface in io.atlassian.fugue
-
A Semigroup is an algebraic structure consisting of an associative binary
operation across the values of a given type (the Semigroup type argument).
- semigroupAssociative(A, A, A) - Method in class io.atlassian.fugue.law.MonoidLaws
-
A monoid must not care about the order elements are combined.
- semigroupAssociative(A, A, A) - Method in class io.atlassian.fugue.law.SemigroupLaws
-
A semigroup must not care about the order elements are combined.
- SemigroupLaws<A> - Class in io.atlassian.fugue.law
-
Laws for a semigroup
- SemigroupLaws(Semigroup<A>) - Constructor for class io.atlassian.fugue.law.SemigroupLaws
-
Build a law instance to check semigroup properties
- Semigroups - Class in io.atlassian.fugue
-
- sequence(Either<X, R>) - Method in class io.atlassian.fugue.Either.LeftProjection
-
Anonymous bind through this projection.
- sequence(Either<L, X>) - Method in class io.atlassian.fugue.Either.RightProjection
-
Anonymous bind through this projection.
- sequence(Either<L, X>) - Method in class io.atlassian.fugue.Either
-
Will return the supplied Either if this one is right, otherwise this one if
left.
- sequence(Iterable<Try<A>>) - Static method in class io.atlassian.fugue.Try
-
Returns a success wrapping all of the values if all of the arguments were a
success, otherwise this returns the first failure
- sequence(Iterable<Try<T>>, Collector<T, A, R>) - Static method in class io.atlassian.fugue.Try
-
Returns a success wrapping all of the values if all of the arguments were a
success, otherwise this returns the first failure
- sequenceLeft(Iterable<Either<L, R>>) - Static method in class io.atlassian.fugue.Eithers
-
Collect the left values if there are only lefts, otherwise return the first
right encountered.
- sequenceLeft(Iterable<Either<L, R>>, Collector<L, A, C>) - Static method in class io.atlassian.fugue.Eithers
-
Collect the left values if there are only lefts, otherwise return the first
right encountered.
- sequenceRight(Iterable<Either<L, R>>) - Static method in class io.atlassian.fugue.Eithers
-
Collect the right values if there are only rights, otherwise return the
first left encountered.
- sequenceRight(Iterable<Either<L, R>>, Collector<R, A, C>) - Static method in class io.atlassian.fugue.Eithers
-
Collect the right values if there are only rights, otherwise return the
first left encountered.
- size(Iterable<A>) - Static method in class io.atlassian.fugue.Iterables
-
Return the size of an iterable.
- some(A) - Static method in class io.atlassian.fugue.Option
-
Factory method for Some instances.
- string - Static variable in class io.atlassian.fugue.Monoids
-
A monoid that appends strings.
- successful(A) - Static method in class io.atlassian.fugue.Try
-
Creates a new Success
- sum(Iterable<A>) - Method in interface io.atlassian.fugue.Monoid
-
Sums the given values.
- sumEqualFold(Iterable<A>) - Method in class io.atlassian.fugue.law.MonoidLaws
-
- sumNonEmpty(A, Iterable<A>) - Method in interface io.atlassian.fugue.Monoid
-
- sumNonEmpty(A, Iterable<A>) - Method in interface io.atlassian.fugue.Semigroup
-
- sumNonEmptyEqualFold(A, Iterable<A>) - Method in class io.atlassian.fugue.law.SemigroupLaws
-
- Suppliers - Class in io.atlassian.fugue
-
Provide utility functions for the class of functions that supply a return
value when invoked.
- Suppliers() - Constructor for class io.atlassian.fugue.Suppliers
-
- swap() - Method in class io.atlassian.fugue.Either
-
If this is a left, then return the left value in right, or vice versa.
- take(int, Iterable<A>) - Static method in class io.atlassian.fugue.Iterables
-
Aakes the first n as and returns them.
- takeWhile(Iterable<A>, Predicate<A>) - Static method in class io.atlassian.fugue.Iterables
-
Return a new iterable containing only the first elements of as for
which p#test returns true.
- toBiFunction(Function<Pair<A, B>, C>) - Static method in class io.atlassian.fugue.Functions
-
Converts a function that takes a pair of arguments to a function that takes
two arguments
- toEither() - Method in class io.atlassian.fugue.Try
-
Convert this Try to an
Either, becoming a left if this is a failure
and a right if this is a success.
- toEitherLeft() - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the left values if there are only lefts, otherwise return the first
right encountered.
- toEitherLeft(Collector<L, A, B>) - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the left values if there are only lefts, otherwise return the first
right encountered.
- toEitherRight() - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the right values if there are only rights, otherwise return the
first left encountered.
- toEitherRight(Collector<R, A, B>) - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the right values if there are only rights, otherwise return the
first left encountered.
- toLeft() - Static method in class io.atlassian.fugue.Eithers
-
Function to convert from an value to a
Either.Left containing that value.
- toLeft(Class<L>, Class<R>) - Static method in class io.atlassian.fugue.Eithers
-
Function to convert from a value to a
Either.Left containing that value.
- toLeft(L) - Static method in class io.atlassian.fugue.Eithers
-
Supplier returning a Either.Left.
- toLeft(L, Class<R>) - Static method in class io.atlassian.fugue.Eithers
-
Supplier returning a Either.Left.
- toLeft(Supplier<X>) - Method in class io.atlassian.fugue.Option
-
Creates an Either from this Option.
- toOption() - Method in interface io.atlassian.fugue.Either.Projection
-
Returns this projection's value in Some if it exists,
otherwise None.
- toOption() - Method in class io.atlassian.fugue.Either
-
Convert this Either to an Option.
- toOption() - Static method in class io.atlassian.fugue.Options
-
Function for wrapping values in a Some or None.
- toOption() - Method in class io.atlassian.fugue.Try
-
Convert this Try to an Option.
- toOptional() - Method in interface io.atlassian.fugue.Either.Projection
-
- toOptional() - Method in class io.atlassian.fugue.Either
-
- toOptional() - Method in class io.atlassian.fugue.Option
-
- toOptional() - Method in class io.atlassian.fugue.Try
-
- toRight() - Static method in class io.atlassian.fugue.Eithers
-
Function to convert from an value to a
Either.Right.
- toRight(Class<L>, Class<R>) - Static method in class io.atlassian.fugue.Eithers
-
Function to convert from a value to a
Either.Right containing that value.
- toRight(R) - Static method in class io.atlassian.fugue.Eithers
-
Supplier returning a Either.Right.
- toRight(Class<L>, R) - Static method in class io.atlassian.fugue.Eithers
-
Supplier returning a Either.Right.
- toRight(Supplier<X>) - Method in class io.atlassian.fugue.Option
-
Creates an Either from this Option.
- toStream() - Method in interface io.atlassian.fugue.Either.Projection
-
- toStream() - Method in class io.atlassian.fugue.Either
-
Convert this Either to a
Stream.
- toStream() - Method in class io.atlassian.fugue.Option
-
Create a
Stream from this option.
- toStream() - Method in class io.atlassian.fugue.Try
-
Create a
Stream from this try.
- toString() - Method in class io.atlassian.fugue.Option
- toString() - Method in class io.atlassian.fugue.Pair
- toTrySuccess() - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the right values if there are only successes, otherwise return the
first failure encountered.
- toTrySuccess(Collector<A, B, C>) - Static method in class io.atlassian.fugue.FugueCollectors
-
Collect the right values if there are only successes, otherwise return the
first failure encountered.
- transform(Iterable<A>, Function<? super A, ? extends B>) - Static method in class io.atlassian.fugue.Iterables
-
- Try<A> - Class in io.atlassian.fugue
-
A Try represents a computation that may either throw an
exception or return a value.
- Try() - Constructor for class io.atlassian.fugue.Try
-