Index
All Classes and Interfaces|All Packages|Serialized Form
A
- a() - Method in class e.java.EOr.Success
- andThen(Supplier<EOr<B>>) - Method in interface e.java.EOr
-
Provides a next EOr if this one has a value, ignoring the value
C
- catching(UnsafeSupplier<A>, Function<Throwable, E>) - Static method in interface e.java.EOr
-
Constructs an EOr from a computation that can throw
- cause(E) - Method in class e.java.E
-
Constructs an E adding given cause
- causeIf(boolean, Supplier<E>) - Method in class e.java.E
-
Constructs an E adding given cause if condition holds
- causes() - Method in class e.java.E
- causes(E...) - Method in class e.java.E
-
Constructs an E adding given causes
- causes(List<E>) - Method in class e.java.E
-
Constructs an E adding given causes
- code() - Method in class e.java.E
- code(int) - Method in class e.java.E
-
Constructs an E containing given code
- Codec<S,
T> - Interface in e.java.codec
D
- data() - Method in class e.java.E
- data(String, V) - Method in class e.java.E
-
Constructs an E adding given data entry
- data(Map<String, String>) - Method in class e.java.E
-
Constructs an E adding given data
- decode(I) - Method in interface e.java.codec.Decoder
-
Decodes an input, possibly failing with E
- Decoder<I,
O> - Interface in e.java.codec -
Typeclass defining how to decode an input value to an output value, possibly failing with E
- decodingError - Static variable in interface e.java.codec.Decoder
-
A default E to be used when decoding fails
E
- e - Variable in exception class e.java.EException
- e() - Method in class e.java.EOr.Failure
- E - Class in e.java
-
A generic and immutable error, containing helpful information
- E(Integer, String, String, List<E>, Map<String, String>, Long) - Constructor for class e.java.E
-
Creates an E with all its properties
- e.java - package e.java
- e.java.codec - package e.java.codec
- EException - Exception Class in e.java
-
A RuntimeException wrapping E to be used where errors are represented as E but an Exception is needed
- EException(E) - Constructor for exception class e.java.EException
- empty - Static variable in class e.java.E
-
An empty E
- encode(I) - Method in interface e.java.codec.Encoder
-
Encodes an input
- Encoder<I,
O> - Interface in e.java.codec -
Typeclass defining how to encode an input value to an output value
- EOr<A> - Interface in e.java
-
A container that can either be a Failure containing an E or Success containing a value
- EOr.Failure<A> - Class in e.java
-
A failed EOr
- EOr.Success<A> - Class in e.java
-
A successful EOr
- equals(Object) - Method in class e.java.E
- equals(Object) - Method in exception class e.java.EException
- equals(Object) - Method in class e.java.EOr.Failure
- equals(Object) - Method in class e.java.EOr.Success
- error() - Method in interface e.java.EOr
F
- Failure(E) - Constructor for class e.java.EOr.Failure
- filter(Function<A, Boolean>) - Method in interface e.java.EOr
-
Filters this EOr by value in it, if it exists
- filter(Function<A, Boolean>, Function<A, E>) - Method in interface e.java.EOr
-
Filters this EOr by value in it, if it exists, using given function
- filteredError - Static variable in interface e.java.EOr
-
A default E to be used when condition does not hold while filtering an EOr
- flatMap(Function<A, EOr<B>>) - Method in interface e.java.EOr
-
Computes a new EOr using value in this, if it exists, with given flat mapping function
- flatMapError(Function<E, EOr<A>>) - Method in interface e.java.EOr
-
Computes a new EOr using E in this, if it exists, with given flat mapping function
- fold(Function<E, B>, Function<A, B>) - Method in interface e.java.EOr
-
Folds this into a single value, handling both E and value conversions with given functions
- forEach(Consumer<A>) - Method in interface e.java.EOr
-
Alias of `onValue`
- from(A) - Static method in interface e.java.EOr
-
Constructs a successful EOr containing given value
- from(Decoder<T, S>, Encoder<S, T>) - Static method in interface e.java.codec.Codec
-
Creates a codec based on an implicit decoder and encoder
- from(E) - Static method in interface e.java.EOr
-
Constructs a failed EOr containing given E
- fromCause(E) - Static method in class e.java.E
-
Constructs an E adding given cause
- fromCauseIf(boolean, Supplier<E>) - Static method in class e.java.E
-
Constructs an E adding given cause if condition holds
- fromCauses(E...) - Static method in class e.java.E
-
Constructs an E adding given causes
- fromCauses(List<E>) - Static method in class e.java.E
-
Constructs an E adding given causes
- fromCode(int) - Static method in class e.java.E
-
Constructs an E containing given code
- fromData(String, V) - Static method in class e.java.E
-
Constructs an E adding given data entry
- fromData(Map<String, String>) - Static method in class e.java.E
-
Constructs an E adding given data
- fromMessage(String) - Static method in class e.java.E
-
Constructs an E containing given message
- fromName(String) - Static method in class e.java.E
-
Constructs an E containing given name
- fromNow() - Static method in class e.java.E
-
Constructs an E containing time set to now
- fromNullable(A, Supplier<E>) - Static method in interface e.java.EOr
-
Constructs an EOr from a nullable value
- fromOptional(Optional<A>, Supplier<E>) - Static method in interface e.java.EOr
-
Constructs an EOr from an Optional value
- fromThrowable(Throwable) - Static method in class e.java.E
-
Constructs an E from given [kotlin.Throwable]
- fromTime(Long) - Static method in class e.java.E
-
Constructs an E containing given time
G
- get() - Method in interface e.java.UnsafeSupplier
-
Gets a value in an unsafe way
- getMessage() - Method in exception class e.java.EException
- getOrElse(Supplier<A>) - Method in interface e.java.EOr
-
Gets the value in this or falls back to given default value
H
- hasCause() - Method in class e.java.E
- hasCode() - Method in class e.java.E
- hasData() - Method in class e.java.E
- hasError() - Method in interface e.java.EOr
- hashCode() - Method in class e.java.E
- hashCode() - Method in exception class e.java.EException
- hashCode() - Method in class e.java.EOr.Failure
- hashCode() - Method in class e.java.EOr.Success
- hasMessage() - Method in class e.java.E
- hasName() - Method in class e.java.E
- hasTime() - Method in class e.java.E
- hasValue() - Method in interface e.java.EOr
M
- map(Function<A, B>) - Method in interface e.java.EOr
-
Converts value in this, if it exists, using given mapping function to make a new EOr
- mapError(Function<E, E>) - Method in interface e.java.EOr
-
Converts E in this, if it exists, using given mapping function to make a new EOr
- message() - Method in class e.java.E
- message(String) - Method in class e.java.E
-
Constructs an E containing given message
N
- name() - Method in class e.java.E
- name(String) - Method in class e.java.E
-
Constructs an E containing given name
- now() - Method in class e.java.E
-
Constructs an E containing time set to now
O
- onError(Consumer<E>) - Method in interface e.java.EOr
-
Performs a side-effect using error in this, if it exists
- onValue(Consumer<A>) - Method in interface e.java.EOr
-
Performs a side-effect using value in this, if it exists
- orElse(Supplier<EOr<A>>) - Method in interface e.java.EOr
-
Provides an alternative EOr if this one has E, ignoring the E
S
- Success(A) - Constructor for class e.java.EOr.Success
T
- time() - Method in class e.java.E
- time(long) - Method in class e.java.E
-
Constructs an E containing given time
- toEOr() - Method in class e.java.E
-
Converts this E to a failed EOr<A>
- toException() - Method in class e.java.E
-
Converts this E into an exception
- toString() - Method in class e.java.E
- toString() - Method in exception class e.java.EException
- toString() - Method in class e.java.EOr.Failure
- toString() - Method in class e.java.EOr.Success
U
- unit - Static variable in interface e.java.EOr
-
A successful EOr of type Unit
- UnsafeSupplier<A> - Interface in e.java
-
A helper functional interface marking a value to be supplied in an unsafe way
V
A C D E F G H M N O S T U VAll Classes and Interfaces|All Packages|Serialized Form