Skip navigation links
A B C D E F G H I L M N O P R S T U V W Z 

F

Fail<T> - Class in com.github.javactic
Indicates a validation failed, describing the failure with a contained error value.
fail(E) - Static method in interface com.github.javactic.Validation
Creates a Fail with the given reason.
failure(B) - Method in interface com.github.javactic.futures.OrPromise
Completes this promise with the given bad value.
filter(Function<? super G, ? extends Validation<? extends B>>) - Method in class com.github.javactic.Bad
 
filter(Function<? super G, ? extends Validation<? extends B>>) - Method in interface com.github.javactic.futures.OrFuture
Creates a new future by filtering this future's result according to the Or.filter(Function) method.
filter(Function<? super G, ? extends Validation<? extends B>>) - Method in class com.github.javactic.Good
 
filter(Function<? super G, ? extends Validation<? extends B>>) - Method in interface com.github.javactic.Or
Returns this Or if either 1) it is a Bad or 2) it is a Good and applying the validation function validation to this Good's value returns Pass; otherwise, returns a new Bad containing the error value contained in the Fail resulting from applying the validation function validation to this Good's value.
find(Predicate<? super T>) - Method in interface com.github.javactic.Every
Finds the first element of this Every that satisfies the given predicate, if any.
firstCompletedOf(Iterable<? extends OrFuture<? extends G, ? extends ERR>>) - Static method in interface com.github.javactic.futures.OrFuture
Returns an OrFuture that will complete as soon as the first OrFuture from the given Iterable completes.
flatMap(Function<? super G, ? extends Or<? extends H, ? extends B>>) - Method in class com.github.javactic.Bad
 
flatMap(Function<? super T, Every<? extends U>>) - Method in interface com.github.javactic.Every
Builds a new Every by applying a function to all elements of this Every and using the elements of the resulting Everys.
flatMap(Function<? super G, ? extends OrFuture<? extends H, ? extends B>>) - Method in interface com.github.javactic.futures.OrFuture
Creates a new future by applying a function to the result of this future if it is a Good, and returns the result of the function as the new future.
flatMap(Function<? super G, ? extends Or<? extends H, ? extends B>>) - Method in class com.github.javactic.Good
 
flatMap(Function<? super G, ? extends Or<? extends H, ? extends B>>) - Method in interface com.github.javactic.Or
Returns the given function applied to the value contained in this Or if it is a Good, or returns this if it is a Bad.
flatten(Every<? extends Every<? extends B>>) - Static method in interface com.github.javactic.Every
Converts this Every of Everys into an Every formed by the elements of the nested Everys.
fold(Function<? super G, ? extends V>, Function<? super B, ? extends V>) - Method in class com.github.javactic.Bad
 
fold(T, BiFunction<? super T, ? super T, ? extends T>) - Method in interface com.github.javactic.Every
Folds the elements of this Every using the specified associative binary operator.
fold(Function<? super G, ? extends V>, Function<? super B, ? extends V>) - Method in class com.github.javactic.Good
 
fold(Function<? super G, ? extends V>, Function<? super B, ? extends V>) - Method in interface com.github.javactic.Or
Folds this Or into a value of type V by applying the given gf function if this is a Good else the given bf function if this is a Bad.
foldLeft(B, BiFunction<? super B, ? super T, ? extends B>) - Method in interface com.github.javactic.Every
Applies a binary operator to a start value and all elements of this Every, going left to right.
foldRight(B, BiFunction<? super T, ? super B, ? extends B>) - Method in interface com.github.javactic.Every
Applies a binary operator to all elements of this Every and a start value, going right to left.
forAll(Predicate<? super G>) - Method in class com.github.javactic.Bad
 
forAll(Predicate<? super T>) - Method in interface com.github.javactic.Every
Indicates whether a predicate holds for all elements of this Every.
forAll(Predicate<? super G>) - Method in class com.github.javactic.Good
 
forAll(Predicate<? super G>) - Method in interface com.github.javactic.Or
Returns true if either this Or is a Bad or if the predicate p returns true when applied to this Good's value.
forEach(Consumer<? super G>) - Method in class com.github.javactic.Bad
 
forEach(Consumer<? super G>, Consumer<? super B>) - Method in class com.github.javactic.Bad
 
forEach(Consumer<? super T>) - Method in interface com.github.javactic.Every
Applies a function f to all elements of this Every.
forEach(Consumer<? super G>) - Method in class com.github.javactic.Good
 
forEach(Consumer<? super G>, Consumer<? super B>) - Method in class com.github.javactic.Good
 
forEach(Consumer<? super G>) - Method in interface com.github.javactic.Or
Applies the given function action to the contained value if this Or is a Good; does nothing if this Or is a Bad.
forEach(Consumer<? super G>, Consumer<? super B>) - Method in interface com.github.javactic.Or
A terminal operation to handle both success and failure cases.
from(Option<? extends G>, Supplier<? extends B>) - Static method in interface com.github.javactic.Or
Transforms an Option into an Or.
from(Option<? extends G>, B) - Static method in interface com.github.javactic.Or
Transforms an Option into an Or.
from(Either<? extends B, ? extends G>) - Static method in interface com.github.javactic.Or
Transforms an Either into an Or.
from(Try<? extends G>) - Static method in interface com.github.javactic.Or
Transforms a Try into an Or.
fromAny(S, Function<? super S, ? extends Or<? extends G, ? extends B>>) - Static method in interface com.github.javactic.Or
Builds an Or from the given source using the provided converter function.
fromJavaOptional(Optional<? extends G>, B) - Static method in interface com.github.javactic.Or
Builds a Good from the given Optional if it is defined, or a Bad if it is not using the given argument.
fromJavaOptional(Optional<? extends G>, Supplier<? extends B>) - Static method in interface com.github.javactic.Or
Builds a Good from the given Optional if it is defined, or a Bad if it is not using the given argument.
future() - Method in interface com.github.javactic.futures.OrPromise
 
FutureFactory<B> - Class in com.github.javactic.futures
A factory for creating OrFutures that will transform unhandled exceptions into instances of Bad using the provided converter.
A B C D E F G H I L M N O P R S T U V W Z 
Skip navigation links

Copyright © 2016. All rights reserved.