See: Description
Interface | Description |
---|---|
Either<L,R> |
Represents a value of one of two possible types.
|
Option<T> |
Represents optional values.
|
ThrowableFunction0<T> |
A function that takes no arguments and returns a value of type T.
|
Try<T> |
The Try type represents a computation that may either result in an exception, or return a successfully computed value.
|
Class | Description |
---|---|
EitherCompanion | |
Failure<T> |
Represents the failure implementation of
Try . |
Left<L,R> | |
LeftProjection<L,R> |
This is a left-biased wrapper for an instance of
Either . |
None<T> |
Represents an empty
Option . |
OptionCompanion | |
Right<L,R> | |
RightProjection<L,R> |
This is a right-biased wrapper for an instance of
Either . |
Some<T> |
Represents an
Option holding a value. |
Success<T> |
Represents the successful implementation of
Try . |
TryCompanion | |
Validator |
Used internally to validate parameters
|
Option
), one of two values (Either
) and value or exception (Try
)
The aim with these utility classes is to provide neat and concise programming patterns. Copyright © 2015, Peter Nerg Apache License v2.0