A C E F G H I L M N O R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(T) - Method in interface io.vavr.control.CheckedConsumer
-
Consumes the given argument
t
by performing an action. - and(CheckedPredicate<? super T>) - Method in interface io.vavr.control.CheckedPredicate
-
Combines this predicate with
that
predicate using logical and (&&). - andThen(CheckedConsumer<? super T>) - Method in interface io.vavr.control.CheckedConsumer
-
Returns a new
CheckedConsumer
that first executes this operation and then the given operationafter
. - andThen(CheckedFunction<? super R, ? extends U>) - Method in interface io.vavr.control.CheckedFunction
-
Returns a composed function that first applies this to the given argument and then applies
after
to the result. - apply(T) - Method in interface io.vavr.control.CheckedFunction
-
Applies this function to one argument and returns the result.
C
- CheckedConsumer<T> - Interface in io.vavr.control
-
A function that consumes an argument, returns nothing and may throw an
Exception
. - CheckedFunction<T,R> - Interface in io.vavr.control
-
A Function which may throw.
- CheckedPredicate<T> - Interface in io.vavr.control
-
A Predicate which may throw.
- CheckedRunnable - Interface in io.vavr.control
-
A Runnable which may throw.
- collect(Collector<? super R, A, T>) - Method in class io.vavr.control.Either
-
Collects the underlying value (if present) using the provided
collector
. - collect(Collector<? super T, A, R>) - Method in class io.vavr.control.Option
-
Collects the underlying value (if present) using the provided
collector
. - collect(Collector<? super T, A, R>) - Method in class io.vavr.control.Try
-
Collects the underlying value (if present) using the provided
collector
. - compose(CheckedFunction<? super U, ? extends T>) - Method in interface io.vavr.control.CheckedFunction
-
Returns a composed function that first applies
before
to the given argument and then applies this to the result. - cond(boolean, Supplier<? extends L>, Supplier<? extends R>) - Static method in class io.vavr.control.Either
-
Conditionally returns either a
Left
or aRight
, depending of the giventest
value.
E
- Either<L,R> - Class in io.vavr.control
-
Either represents a value of two possible types.
- empty() - Static method in interface io.vavr.collection.Iterator
-
Returns the singleton instance of the empty
Iterator
. - equals(Object) - Method in class io.vavr.control.Either
-
Checks if this
Either
is equal to the given objecto
. - equals(Object) - Method in class io.vavr.control.Option
-
Checks if this
Option
is equal to the given objecto
. - equals(Object) - Method in class io.vavr.control.Try
-
Checks if this
Try
is equal to the given objecto
.
F
- failed() - Method in class io.vavr.control.Try
-
Inverts this
Try
. - failure(Throwable) - Static method in class io.vavr.control.Try
-
Creates a
Try.Failure
that contains the givenexception
. - filter(CheckedPredicate<? super T>) - Method in class io.vavr.control.Try
-
Returns
this
if this is a Failure or this is a Success and the value satisfies the predicate. - filter(Predicate<? super T>) - Method in class io.vavr.control.Option
-
Returns
Some(value)
if this is aSome
and the value satisfies the given predicate. - filterOrElse(Predicate<? super R>, Function<? super R, ? extends L>) - Method in class io.vavr.control.Either
-
Filters this right-biased
Either
by testing a predicate. - flatMap(CheckedFunction<? super T, ? extends Try<? extends U>>) - Method in class io.vavr.control.Try
-
FlatMaps the value of a Success or returns a Failure.
- flatMap(Comparator<? super K2>, BiFunction<? super K, ? super V, ? extends Iterable<? extends Tuple2<? extends K2, ? extends V2>>>) - Method in interface io.vavr.collection.SortedMap
- flatMap(Comparator<? super U>, Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.SortedSet
- flatMap(BiFunction<? super K, ? super V, ? extends Iterable<? extends Tuple2<? extends K2, ? extends V2>>>) - Method in interface io.vavr.collection.Map
- flatMap(BiFunction<? super K, ? super V, ? extends Iterable<? extends Tuple2<? extends K2, ? extends V2>>>) - Method in interface io.vavr.collection.SortedMap
- flatMap(Function<? super Tuple2<K, V>, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.Map
- flatMap(Function<? super Tuple2<K, V>, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.SortedMap
- flatMap(Function<? super R, Either<L, ? extends U>>) - Method in class io.vavr.control.Either
-
FlatMaps this right-biased Either.
- flatMap(Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.IndexedSeq
- flatMap(Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.LinearSeq
- flatMap(Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.Seq
- flatMap(Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.Set
- flatMap(Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.SortedSet
- flatMap(Function<? super T, ? extends Iterable<? extends U>>) - Method in interface io.vavr.collection.Traversable
- flatMap(Function<? super T, Option<? extends U>>) - Method in class io.vavr.control.Option
-
Maps the value to a new
Option
if this is aSome
, otherwise returnsNone
. - fold(Function<? super Throwable, ? extends U>, Function<? super T, ? extends U>) - Method in class io.vavr.control.Try
-
Folds either the
Failure
or theSuccess
side of the Try value. - fold(Function<? super L, ? extends U>, Function<? super R, ? extends U>) - Method in class io.vavr.control.Either
-
Folds either the left or the right side of this disjunction.
- fold(Supplier<? extends U>, Function<? super T, ? extends U>) - Method in class io.vavr.control.Option
-
Folds either the
None
or theSome
side of the Option value.
G
- get() - Method in class io.vavr.control.Either
-
Deprecated.Unsafe operation (but not marked for removal). Use
Either.fold(Function, Function)
,Either.getOrElse(Object)
,Either.getOrElseGet(Function)
orEither.getOrElseThrow(Function)
instead. Other alternatives areEither.onRight(Consumer)
,Iterable.forEach(Consumer)
or iteration using a for-loop. - get() - Method in class io.vavr.control.Option
-
Deprecated.Unsafe operation (but not marked for removal). User
Option.getOrElse(Object)
,Option.getOrElseGet(Supplier)
orOption.getOrElseThrow(Supplier)
instead. Other alternatives areOption.onDefined(Consumer)
,Iterable.forEach(Consumer)
or iteration using a for-loop. - get() - Method in class io.vavr.control.Try
-
Deprecated.Unsafe operation (but not marked for removal). Use
Try.fold(Function, Function)
,Try.getOrElse(Object)
,Try.getOrElseGet(Supplier)
orTry.getOrElseThrow(Function)
instead. Other alternatives areTry.onSuccess(Consumer)
,Iterable.forEach(Consumer)
or iteration using a for-loop. - getCause() - Method in class io.vavr.control.Try
-
Deprecated.Unsafe operation (but not marked for removal). Use
Try.fold(Function, Function)
instead. An alternative isTry.onFailure(Consumer)
. - getLeft() - Method in class io.vavr.control.Either
-
Deprecated.Unsafe operation (but not marked for removal). Use
Either.fold(Function, Function)
instead. An alternative isEither.onLeft(Consumer)
. - getOrElse(R) - Method in class io.vavr.control.Either
-
Gets the Right value or an alternate value, if the Either is a Left.
- getOrElse(T) - Method in class io.vavr.control.Option
-
Returns the value if this is a
Some
or theother
value if this is aNone
. - getOrElse(T) - Method in class io.vavr.control.Try
-
Returns the underlying value if present, otherwise
other
. - getOrElseGet(Function<? super L, ? extends R>) - Method in class io.vavr.control.Either
-
Gets the Right value or an alternate value, if the Either is a Left.
- getOrElseGet(Supplier<? extends T>) - Method in class io.vavr.control.Option
-
Returns the value if this is a
Some
, otherwise theother
value is returned, if this is aNone
. - getOrElseGet(Supplier<? extends T>) - Method in class io.vavr.control.Try
-
Returns the underlying value if present, otherwise the result of
other.get()
. - getOrElseThrow(Function<? super Throwable, ? extends X>) - Method in class io.vavr.control.Try
-
Returns the underlying value if present, otherwise throws a user-specific exception.
- getOrElseThrow(Function<? super L, X>) - Method in class io.vavr.control.Either
-
Gets the Right value or throws, if this Either is a Left.
- getOrElseThrow(Supplier<X>) - Method in class io.vavr.control.Option
-
Returns the value if this is a
Some
, otherwise throws an exception.
H
- hashCode() - Method in class io.vavr.control.Either
-
Computes the hash of this
Either
. - hashCode() - Method in class io.vavr.control.Option
-
Computes the hash of this
Option
. - hashCode() - Method in class io.vavr.control.Try
-
Computes the hash of this
Try
.
I
- identity() - Static method in interface io.vavr.control.CheckedFunction
-
Returns the identity
CheckedFunction
, i.e. - IndexedSeq<T> - Interface in io.vavr.collection
- io.vavr - package io.vavr
- io.vavr.collection - package io.vavr.collection
- io.vavr.control - package io.vavr.control
- isDefined() - Method in class io.vavr.control.Option
-
Returns true, if this is
Some
, otherwise false, if this isNone
. - isEmpty() - Method in class io.vavr.control.Option
-
Returns true, if this is
None
, otherwise false, if this isSome
. - isFailure() - Method in class io.vavr.control.Try
-
Checks if this is a Failure.
- isLeft() - Method in class io.vavr.control.Either
-
Returns whether this Either is a Left.
- isRight() - Method in class io.vavr.control.Either
-
Returns whether this Either is a Right.
- isSuccess() - Method in class io.vavr.control.Try
-
Checks if this is a Success.
- Iterable<T> - Interface in io.vavr
-
Extension of the well-known Java
Iterable
in the sense that a rich VavrIterator
is returned byIterable.iterator()
. - iterator() - Method in class io.vavr.control.Either
- iterator() - Method in class io.vavr.control.Option
- iterator() - Method in class io.vavr.control.Try
- iterator() - Method in interface io.vavr.Iterable
-
Returns an
Iterator
that allows us to perform intermediate, sequential operations known from Vavr's collection library. - Iterator<T> - Interface in io.vavr.collection
L
- left(L) - Static method in class io.vavr.control.Either
-
Constructs a
Left
Either. - LinearSeq<T> - Interface in io.vavr.collection
M
- map(CheckedFunction<? super T, ? extends U>) - Method in class io.vavr.control.Try
-
Runs the given checked function if this is a
Try.Success
, passing the result of the current expression to it. - map(Comparator<? super K2>, BiFunction<? super K, ? super V, ? extends Tuple2<? extends K2, ? extends V2>>) - Method in interface io.vavr.collection.SortedMap
- map(Comparator<? super U>, Function<? super T, ? extends U>) - Method in interface io.vavr.collection.SortedSet
- map(BiFunction<? super K, ? super V, ? extends Tuple2<? extends K2, ? extends V2>>) - Method in interface io.vavr.collection.Map
- map(BiFunction<? super K, ? super V, ? extends Tuple2<? extends K2, ? extends V2>>) - Method in interface io.vavr.collection.SortedMap
- map(Function<? super Tuple2<K, V>, ? extends U>) - Method in interface io.vavr.collection.Map
- map(Function<? super Tuple2<K, V>, ? extends U>) - Method in interface io.vavr.collection.SortedMap
- map(Function<? super R, ? extends U>) - Method in class io.vavr.control.Either
-
Maps the value of this Either if it is a Right, performs no operation if this is a Left.
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.collection.IndexedSeq
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.collection.LinearSeq
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.collection.Seq
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.collection.Set
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.collection.SortedSet
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.collection.Traversable
- map(Function<? super T, ? extends U>) - Method in class io.vavr.control.Option
-
Maps the value and wraps it in a new
Some
if this is aSome
, returnsNone
. - Map<K,V> - Interface in io.vavr.collection
- mapFailure(CheckedFunction<? super Throwable, ? extends Throwable>) - Method in class io.vavr.control.Try
-
Maps the cause to a new exception if this is a
Failure
or returns this instance if this is aSuccess
. - mapLeft(Function<? super L, ? extends U>) - Method in class io.vavr.control.Either
-
Maps the value of this Either if it is a Left, performs no operation if this is a Right.
N
- negate() - Method in interface io.vavr.control.CheckedPredicate
-
Negates this predicate.
- none() - Static method in class io.vavr.control.Option
-
Returns the single instance of
None
- NonFatalException - Exception in io.vavr.control
- not(CheckedPredicate<? super T>) - Static method in interface io.vavr.control.CheckedPredicate
-
Negates a given predicate by calling
that.negate()
.
O
- of(Callable<? extends T>) - Static method in class io.vavr.control.Try
-
Creates a Try of a Callable.
- of(T) - Static method in interface io.vavr.collection.Iterator
-
Creates an Iterator which iterates over the given element.
- of(T) - Static method in class io.vavr.control.Option
-
Creates a new
Option
of a given value. - ofOptional(Optional<? extends T>) - Static method in class io.vavr.control.Option
-
Wraps a Java Optional to a new Option
- onDefined(Consumer<? super T>) - Method in class io.vavr.control.Option
-
Applies an action to this value if this is defined, otherwise nothing happens.
- onEmpty(Runnable) - Method in class io.vavr.control.Option
-
Runs a Java Runnable passed as parameter if this
Option
is empty. - onFailure(Consumer<? super Throwable>) - Method in class io.vavr.control.Try
-
Consumes the cause if this is a
Try.Failure
. - onLeft(Consumer<? super L>) - Method in class io.vavr.control.Either
-
Applies an action to this left value if this is a
Left
, otherwise nothing happens. - onRight(Consumer<? super R>) - Method in class io.vavr.control.Either
-
Applies an action to this right value if this is a
Right
, otherwise nothing happens. - onSuccess(Consumer<? super T>) - Method in class io.vavr.control.Try
-
Consumes the value if this is a
Try.Success
. - Option<T> - Class in io.vavr.control
-
Replacement for
Optional
. - or(CheckedPredicate<? super T>) - Method in interface io.vavr.control.CheckedPredicate
-
Combines this predicate with
that
predicate using logical or (||). - orElse(Callable<? extends Try<? extends T>>) - Method in class io.vavr.control.Try
-
Returns this
Try
in the case of aSuccess
, otherwiseother.call()
. - orElse(Supplier<? extends Option<? extends T>>) - Method in class io.vavr.control.Option
-
Returns this
Option
if it is nonempty, otherwise return the result of evaluating supplier. - orElse(Supplier<Either<? extends L, ? extends R>>) - Method in class io.vavr.control.Either
R
- recover(Class<X>, CheckedFunction<? super X, ? extends T>) - Method in class io.vavr.control.Try
-
Returns
this
, if this is aSuccess
or this is aFailure
and the cause is not assignable fromcause.getClass()
. - recoverWith(Class<X>, CheckedFunction<? super X, ? extends Try<? extends T>>) - Method in class io.vavr.control.Try
-
Returns
this
, if this is aSuccess
or this is aFailure
and the cause is not assignable fromcause.getClass()
. - right(R) - Static method in class io.vavr.control.Either
-
Constructs a
Right
Either. - run() - Method in interface io.vavr.control.CheckedRunnable
-
Performs side-effects.
- run(CheckedRunnable) - Static method in class io.vavr.control.Try
-
Runs a
CheckedRunnable
and captures any non-fatal exception in aTry
.
S
- Seq<T> - Interface in io.vavr.collection
- Set<T> - Interface in io.vavr.collection
- some(T) - Static method in class io.vavr.control.Option
-
Creates a new
Some
of a given value. - SortedMap<K,V> - Interface in io.vavr.collection
- SortedSet<T> - Interface in io.vavr.collection
- stream() - Method in class io.vavr.control.Either
-
Converts this
Either
to aStream
. - stream() - Method in class io.vavr.control.Option
-
Converts this
Option
to aStream
. - stream() - Method in class io.vavr.control.Try
-
Converts this
Try
to aStream
. - success(T) - Static method in class io.vavr.control.Try
-
Creates a
Try.Success
that contains the givenvalue
. - swap() - Method in class io.vavr.control.Either
-
Converts a
Left
to aRight
vice versa by wrapping the value in a new type.
T
- test(T) - Method in interface io.vavr.control.CheckedPredicate
-
Evaluates this predicate on the given argument.
- to(Function<Iterable<T>, C>) - Method in interface io.vavr.collection.Traversable
- toEither(Function<? super Throwable, ? extends U>) - Method in class io.vavr.control.Try
-
Converts this
Try
to anEither
. - toEither(Supplier<? extends U>) - Method in class io.vavr.control.Option
-
Converts this
Option
to anEither
. - toOption() - Method in class io.vavr.control.Either
-
Converts this
Either
to anOption
. - toOption() - Method in class io.vavr.control.Try
-
Converts this
Try
to anOption
. - toOptional() - Method in class io.vavr.control.Either
-
Converts this
Either
to anOptional
. - toOptional() - Method in class io.vavr.control.Option
-
Converts this
Option
to anOptional
. - toOptional() - Method in class io.vavr.control.Try
-
Converts this
Try
to anOptional
. - toString() - Method in class io.vavr.control.Either
-
Returns a string representation of this
Either
. - toString() - Method in class io.vavr.control.Option
-
Returns a string representation of this
Option
. - toString() - Method in class io.vavr.control.Try
-
Returns a string representation of this
Try
. - toTry(Function<? super L, ? extends Throwable>) - Method in class io.vavr.control.Either
-
Converts this
Either
to aTry
. - toTry(Supplier<? extends Throwable>) - Method in class io.vavr.control.Option
-
Converts this
Option
to aTry
. - transform(CheckedFunction<? super Throwable, ? extends Try<? extends U>>, CheckedFunction<? super T, ? extends Try<? extends U>>) - Method in class io.vavr.control.Try
-
Transforms this
Try
by applying eitherifSuccess
to this value orifFailure
to this cause. - transform(Function<? super L, ? extends Either<L, ? extends U>>, Function<? super R, ? extends Either<L, ? extends U>>) - Method in class io.vavr.control.Either
-
Transforms this
Either
by applying eitherifRight
to this right value orifLeft
to this left value. - transform(Supplier<? extends Option<? extends U>>, Function<? super T, ? extends Option<? extends U>>) - Method in class io.vavr.control.Option
-
Transforms this
Option
by applying eitherifDefined
to this value or by callingifEmpty
. - Traversable<T> - Interface in io.vavr.collection
- Try<T> - Class in io.vavr.control
-
The
Try
control gives us the ability to write safe code without focusing on try-catch blocks in the presence of exceptions. - Tuple2<T1,T2> - Class in io.vavr
- Tuple2() - Constructor for class io.vavr.Tuple2
U
- unless(boolean, Supplier<? extends T>) - Static method in class io.vavr.control.Option
-
Unless the given
condition
is true,Some(supplier.get())
is returned.
W
- when(boolean, Supplier<? extends T>) - Static method in class io.vavr.control.Option
-
When the given
condition
is true,Some(supplier.get())
is returned.
All Classes All Packages