A C D E F G H I M O R S T U W X 
All Classes All Packages

A

accept(T) - Method in interface io.github.oliviercailloux.exceptions.Throwing.Consumer
 
accept(T, U) - Method in interface io.github.oliviercailloux.exceptions.Throwing.BiConsumer
 
accept(T, U) - Method in interface io.github.oliviercailloux.exceptions.Throwing.BiPredicate
 
apply(T) - Method in interface io.github.oliviercailloux.exceptions.Throwing.Function
 
apply(T, U) - Method in interface io.github.oliviercailloux.exceptions.Throwing.BiFunction
 

C

call(Throwing.Runnable<EF>) - Method in class io.github.oliviercailloux.exceptions.Unchecker
Calls the given runnable; if it throws a checked exception, throws an unchecked exception instead, applying the wrapper; if the runnable throws an unchecked exception, the exception is thrown unchanged.
Credentials - Class in io.github.oliviercailloux.jaris.credentials
Represents credentials of a user, meaning, a user’s login information, that is, a username and a password.
CredsReader - Class in io.github.oliviercailloux.jaris.credentials
This class permits to read a user’s credentials (authentication information), meaning, a username and a password, from various sources.

D

DEFAULT_FILE_PATH - Static variable in class io.github.oliviercailloux.jaris.credentials.CredsReader
The default value of the file path.
DEFAULT_PASSWORD_KEY - Static variable in class io.github.oliviercailloux.jaris.credentials.CredsReader
The default value of the password key used in CredsReader.defaultCreds().
DEFAULT_USERNAME_KEY - Static variable in class io.github.oliviercailloux.jaris.credentials.CredsReader
The default value of the username key used in CredsReader.defaultCreds().
defaultCreds() - Static method in class io.github.oliviercailloux.jaris.credentials.CredsReader

E

equals(Object) - Method in class io.github.oliviercailloux.exceptions.Try
Returns true iff the given object is a Try; is a success or a failure according to whether this instance is a success or a failure; and holds an equal result or cause.
equals(Object) - Method in class io.github.oliviercailloux.exceptions.TryVoid
Returns true iff the given object is a Try and, either: this object and the given object are both successes; or this object and the given object are both failures and they encapsulate equal causes.
equals(Object) - Method in class io.github.oliviercailloux.jaris.credentials.Credentials
Returns true iff the given object is a Credentials and the username and password match.

F

failure(Throwable) - Static method in class io.github.oliviercailloux.exceptions.Try
Returns a failure encapsulating the given cause.
failure(Throwable) - Static method in class io.github.oliviercailloux.exceptions.TryVoid
Returns a failure encapsulating the given cause.

G

get() - Method in interface io.github.oliviercailloux.exceptions.Throwing.Supplier
 
get() - Method in class io.github.oliviercailloux.exceptions.Try
If this instance is a success, returns the result it encapsulates.
getCause() - Method in class io.github.oliviercailloux.exceptions.Try
If this object is a failure, returns the cause it encapsulates.
getCause() - Method in class io.github.oliviercailloux.exceptions.TryVoid
If this object is a failure, returns the cause it encapsulates.
getCredentials() - Method in class io.github.oliviercailloux.jaris.credentials.CredsReader
Returns the credentials found from the first valid source, unless an exception is raised.
getFilePath() - Method in class io.github.oliviercailloux.jaris.credentials.CredsReader
Returns the file path that is read from, considering the file source.
getPassword() - Method in class io.github.oliviercailloux.jaris.credentials.Credentials
Returns the password.
getPasswordKey() - Method in class io.github.oliviercailloux.jaris.credentials.CredsReader
Returns the password key, used to read from the system properties and the environment.
getUsername() - Method in class io.github.oliviercailloux.jaris.credentials.Credentials
Returns the username.
getUsernameKey() - Method in class io.github.oliviercailloux.jaris.credentials.CredsReader
Returns the username key, used to read from the system properties and the environment.
getUsing(Throwing.Supplier<T, EF>) - Method in class io.github.oliviercailloux.exceptions.Unchecker
Attempts to get and return a result from the given supplier; if the supplier throws a checked exception, throws an unchecked exception instead, applying the wrapper; if the supplier throws an unchecked exception, the exception is thrown unchanged.
given(String, String) - Static method in class io.github.oliviercailloux.jaris.credentials.Credentials
Creates an instance containing the given information.
given(String, String, Path) - Static method in class io.github.oliviercailloux.jaris.credentials.CredsReader
Returns an instance that will read from the sources configured with the given parameters.

H

hashCode() - Method in class io.github.oliviercailloux.exceptions.Try
 
hashCode() - Method in class io.github.oliviercailloux.exceptions.TryVoid
 
hashCode() - Method in class io.github.oliviercailloux.jaris.credentials.Credentials
 

I

IO_UNCHECKER - Static variable in class io.github.oliviercailloux.exceptions.Unchecker
An object that accepts functional interfaces that throw IOException instances; and that will throw UncheckedIOException instances instead.
io.github.oliviercailloux.exceptions - package io.github.oliviercailloux.exceptions
 
io.github.oliviercailloux.jaris.credentials - package io.github.oliviercailloux.jaris.credentials
 
io.github.oliviercailloux.jaris.xml - package io.github.oliviercailloux.jaris.xml
 
isFailure() - Method in class io.github.oliviercailloux.exceptions.Try
Return true iff this object encapsulates a cause (and not a result).
isFailure() - Method in class io.github.oliviercailloux.exceptions.TryVoid
Returns true iff this object represents a failure; equivalently, iff it encapsulates a cause.
isSuccess() - Method in class io.github.oliviercailloux.exceptions.Try
Returns true iff this object encapsulates a result (and not a cause).
isSuccess() - Method in class io.github.oliviercailloux.exceptions.TryVoid
Returns true iff this object represents a success.

M

map(Function<T, E2>) - Method in class io.github.oliviercailloux.exceptions.Try
If this instance is a success, returns a Try that encapsulates the result of applying the given transformation to the result this instance encapsulates.

O

of(Supplier<T>) - Static method in class io.github.oliviercailloux.exceptions.Try
Attempts to get and encapsulate a result from the given supplier.

R

run() - Method in interface io.github.oliviercailloux.exceptions.Throwing.Runnable
 
run(Throwing.Runnable<Throwable>) - Static method in class io.github.oliviercailloux.exceptions.TryVoid
Attempts to run the given runnable, and returns a success if it succeeds; or a failure encapsulating the exception thrown by the runnable if it threw one.

S

success() - Static method in class io.github.oliviercailloux.exceptions.TryVoid
Returns a success.
success(T) - Static method in class io.github.oliviercailloux.exceptions.Try
Returns a success encapsulating the given result.

T

test(T) - Method in interface io.github.oliviercailloux.exceptions.Throwing.Predicate
 
Throwing - Interface in io.github.oliviercailloux.exceptions
Variations on the standard functional interfaces which throw a specific subclass of Throwable.
Throwing.BiConsumer<T,​U,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.BiFunction<T,​U,​R,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.BiPredicate<T,​U,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.Consumer<T,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.Function<T,​R,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.Predicate<T,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.Runnable<E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
Throwing.Supplier<T,​E extends java.lang.Throwable> - Interface in io.github.oliviercailloux.exceptions
 
toDebugString(Node) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
Returns the node type, its local name, its namespace, its value, and its name.
toElements(NodeList) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
Returns a copy of the given list of nodes as a list of elements, using a proper generic collection.
toList(NodeList) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
Returns a copy of the given list of nodes, using a proper generic collection.
toString() - Method in class io.github.oliviercailloux.exceptions.Try
Returns a string representation of this object, suitable for debug.
toString() - Method in class io.github.oliviercailloux.exceptions.TryVoid
Returns a string representation of this object, suitable for debug.
toString() - Method in class io.github.oliviercailloux.jaris.credentials.Credentials
Returns a string representation of this object, suitable for debug.
toString(Node) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
Returns a pretty-printed textual representation of the node.
Try<T> - Class in io.github.oliviercailloux.exceptions
An instance of this class keeps either a result (in which case it is called a “success”) or a cause of type Throwable (in which case it is called a “failure”).
TryVoid - Class in io.github.oliviercailloux.exceptions
An instance of this class represents either a “success” or a “failure”, in which case it encapsulates a cause of type Throwable.

U

Unchecker<EF extends java.lang.Exception,​ET extends java.lang.RuntimeException> - Class in io.github.oliviercailloux.exceptions
An object able to transform functional interfaces that throw checked exceptions to functional interfaces that throw only runtime exceptions; and able to invoke function interfaces that throw checked exceptions.
URI_UNCHECKER - Static variable in class io.github.oliviercailloux.exceptions.Unchecker
An object that accepts functional interfaces that throw URISyntaxException instances; and that will throw VerifyException instances instead.

W

wrapFunction(Throwing.Function<F, T, EF>) - Method in class io.github.oliviercailloux.exceptions.Unchecker
Returns a function that simply delegates to the given function, except that any checked exception thrown by the given function is instead thrown by the returned function as an unchecked exception, applying the wrapper to transform it.
wrappingWith(Function<EF, ET>) - Static method in class io.github.oliviercailloux.exceptions.Unchecker
Returns an object that will use the given wrapper function to transform checked exceptions to unchecked ones, if any checked exception happens.
wrapPredicate(Throwing.Predicate<F, EF>) - Method in class io.github.oliviercailloux.exceptions.Unchecker
Returns a predicate that simply delegates to the given predicate, except that any checked exception thrown by the given predicate is instead thrown by the returned predicate as an unchecked exception, applying the wrapper to transform it.
wrapRunnable(Throwing.Runnable<EF>) - Method in class io.github.oliviercailloux.exceptions.Unchecker
Returns a runnable that delegates to the given runnable, except that any checked exception thrown by the given runnable is instead thrown by the returned runnable as an unchecked exception, applying the wrapper to transform it.
wrapSupplier(Throwing.Supplier<T, EF>) - Method in class io.github.oliviercailloux.exceptions.Unchecker
Returns a supplier that simply delegates to the given supplier, except that any checked exception thrown by the given supplier is instead thrown by the returned supplier as an unchecked exception, applying the wrapper to transform it.

X

XHTML_NAME_SPACE - Static variable in class io.github.oliviercailloux.jaris.xml.XmlUtils
 
XmlUtils - Class in io.github.oliviercailloux.jaris.xml
 
A C D E F G H I M O R S T U W X 
All Classes All Packages