Index
All Classes|All Packages|Serialized Form
A
- accept(T) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Consumer
-
Performs this operation on the given argument.
- accept(T, U) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiConsumer
-
Performs this operation on the given arguments.
- allMatch(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns whether all elements of this stream match the provided predicate.
- and(Throwing.BiPredicate<? super T, ? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiPredicate
-
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
- and(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Predicate
-
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
- and(Try<U, ? extends X>, Throwing.BiFunction<? super T, ? super U, ? extends V, Y>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Returns this failure if this instance is a failure; the provided failure if the provided try is a failure and this instance is a success; and a success containing the merge of the result contained in this instance and the one contained in
t2
, if they both are successes andmerger
does not returnnull
. - and(TryCatchAll<U>, Throwing.BiFunction<? super T, ? super U, ? extends V, Y>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns this failure if this instance is a failure; the provided failure if it is a failure and this instance is a success; and a success containing the merge of the result contained in this instance and the one contained in
t2
, if they both are successes andmerger
does not returnnull
. - andApply(Throwing.Function<? super T, ? extends U, ? extends Throwable>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns this failure if this instance is a failure; a failure containing the cause thrown by the given function if it threw a checked exception; a failure containing a
NullPointerException
as a cause if the provided mapper returnednull
; or a success containing the result of applying the provided mapper to the result contained in this instance if it is a success and the mapper returned a non-null
result. - andApply(Throwing.Function<? super T, ? extends U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Returns this failure if this instance is a failure; a failure containing the cause thrown by the given function if it threw a checked exception; or a success containing the result of applying the provided mapper to the result contained in this instance if it is a success and the mapper returned a non-
null
result. - andConsume(Throwing.Consumer<? super T, ?>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns a failure containing this cause if this instance is a failure, a failure containing the checked exception that the provided consumer threw if it did throw one, and a success containg the result contained in this instance otherwise.
- andConsume(Throwing.Consumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Runs the consumer iff this instance is a success, and returns this instance if it succeeds and the cause of failure if it throws a checked exception; otherwise, returns this instance.
- andGet(Throwing.Supplier<? extends T, ? extends Throwable>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAllVoid
-
If this instance is a success, returns a try representing the result of invoking the given supplier; otherwise, returns this failure.
- andGet(Throwing.Supplier<? extends T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryVoid
-
If this instance is a success, returns a try representing the result of invoking the given supplier; otherwise, returns this failure as a try.
- andRun(Throwing.Runnable<?>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns a failure containing this cause if this instance is a failure, a failure containing the checked exception that the provided runnable threw if it did throw one, and a success containg the result contained in this instance if this instance is a success and the provided runnable does not throw.
- andRun(Throwing.Runnable<?>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAllVoid
-
If this instance is a success, returns a
TryVoid
instance representing the result of invoking the given runnable; otherwise, returns this failure. - andRun(Throwing.Runnable<? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Runs the runnable iff this instance is a success, and returns this instance if it succeeds and the cause of failure if it throws a checked exception; otherwise, returns this instance.
- andRun(Throwing.Runnable<? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryVoid
-
If this instance is a success, returns a
TryVoid
instance representing the result of invoking the given runnable; otherwise, returns this failure. - andThen(Throwing.BiConsumer<? super T, ? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiConsumer
-
Returns a composed
Throwing.BiConsumer
that performs, in sequence, this operation followed by theafter
operation. - andThen(Throwing.Consumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Consumer
-
Returns a composed
Throwing.Consumer
that performs, in sequence, this operation followed by theafter
operation. - andThen(Throwing.Function<? super R, ? extends V, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiFunction
-
Returns a composed function that first applies this function to its input, and then applies the
after
function to the result. - andThen(Throwing.Function<? super R, ? extends V, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Function
-
Returns a composed function that first applies this function to its input, and then applies the
after
function to the result. - anyMatch(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns whether any elements of this stream match the provided predicate.
- API_KEY - Enum constant in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.KeyCredential
-
The unique enum instance for use with single key authentication.
- API_PASSWORD - Enum constant in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.ClassicalCredentials
-
The password key, for use with username and password style authentication.
- API_USERNAME - Enum constant in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.ClassicalCredentials
-
The username key, for use with username and password style authentication.
- apply(T) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Function
-
Applies this function to the given argument.
- apply(T, U) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiFunction
-
Applies this function to the given arguments.
- asDocument(StreamSource) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.DomHelper
-
Retrieves the content of the given stream as a document.
- asSchema(Source) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.SchemaHelper
-
Produces the schema corresponding to the given source, or throws.
- asSource(String) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
Returns a source representing the given content.
C
- call(Throwing.Runnable<X>) - Method in class io.github.oliviercailloux.jaris.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.
- CheckedStream<T,X extends Exception> - Interface in io.github.oliviercailloux.jaris.exceptions
-
An equivalent to Java
Stream
which allows for functional interfaces that may throw checked exceptions; designed for people who do not like sneaky-throws. - classicalReader() - Static method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns an instance reading from the key values
CredentialsReader.ClassicalCredentials.API_USERNAME
andCredentialsReader.ClassicalCredentials.API_PASSWORD
, and the default fileCredentialsReader.DEFAULT_FILE_PATH
. - clear() - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Deprecated.Unsupported operation.
- collect(Throwing.Supplier<R, ? extends X>, Throwing.BiConsumer<R, ? super T, ? extends X>, Throwing.BiConsumer<R, R, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs a mutable reduction operation on the elements of this stream.
- collect(Collector<? super T, A, R>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs a mutable reduction operation on the elements of this stream using a
Collector
. - CollectionUtils - Class in io.github.oliviercailloux.jaris.collections
-
A few helper methods generally useful when dealing with collections, felt to miss from the JDK and Guava.
- CollectionUtils() - Constructor for class io.github.oliviercailloux.jaris.collections.CollectionUtils
- compare(T, T) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Compares its two arguments for order.
- comparing(Throwing.Function<? super T, ? extends U, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Accepts a function that extracts a
Comparable
sort key from a typeT
, and returns aThrowing.Comparator<T>
that compares by that sort key. - comparing(Throwing.Function<? super T, ? extends U, ? extends X>, Throwing.Comparator<? super U, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Accepts a function that extracts a sort key from a type
T
, and returns aThrowing.Comparator<T>
that compares by that sort key using the specifiedThrowing.Comparator
. - compose(Throwing.Function<? super V, ? extends T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Function
-
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. - containsKey(Object) - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
- count() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns the count of elements in this stream.
- CredentialsReader<K extends Enum<K>> - Class in io.github.oliviercailloux.jaris.credentials
-
This class permits to read a user’s credentials (authentication information) from various sources.
- CredentialsReader.ClassicalCredentials - Enum Class in io.github.oliviercailloux.jaris.credentials
-
The enum type used in a classical reader, for use with username and password style authentication.
- CredentialsReader.KeyCredential - Enum Class in io.github.oliviercailloux.jaris.credentials
-
The enum type used in a key reader.
D
- DEFAULT_FILE_PATH - Static variable in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
The default value of the file path.
- distinct() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the distinct elements (according to
Object.equals(Object)
) of this stream. - dropWhile(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns, if this stream is ordered, a checked stream consisting of the remaining elements of this stream after dropping the longest prefix of elements that match the given predicate.
E
- EMPTY_SOURCE - Static variable in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
The empty source.
- entrySet() - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns an immutable set of the mappings in this map.
- equals(Object) - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns
true
iff the given object also is a credentials reader and is configured to read from the same sources (meaning, key values and file path). - equals(Object) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Indicates whether some other object is “equal” to this comparator, implying that the other object is also a
Throwing.Comparator
and imposes the same ordering. - equals(Object) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns
true
iff the given object is aTryOptional
, this and the given object are both successes and have equal results, or are both failures and have equal causes.
F
- failure(Throwable) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns a failure containing the given cause.
- failure(Throwable) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAllVoid
-
Returns a failure containing the given cause.
- failure(X) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Returns a failure containing the given cause.
- failure(X) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryVoid
-
Returns a failure containing the given cause.
- filter(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the elements of this stream that match the given predicate.
- findAny() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns an
Optional
describing some element of the stream, or an emptyOptional
if the stream is empty. - findFirst() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns an
Optional
describing the first element of this stream, or an emptyOptional
if the stream is empty. - flatMap(Throwing.Function<? super T, ? extends Stream<? extends R>, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced by applying the provided mapping function to each element.
- forEach(Throwing.Consumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs an action for each element of this stream.
- forEachOrdered(Throwing.Consumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs an action for each element of this stream, in the encounter order of the stream if the stream has a defined encounter order.
- from(Collection<T>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream wrapping the stream produced by
collection.stream()
. - fromEnumType(Class<K>, Map<K, V>) - Static method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns an immutable map instance containing the given entries.
G
- generate(Throwing.Supplier<? extends T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns an infinite sequential unordered checked stream where each element is generated by the provided
Throwing.Supplier
. - get() - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Supplier
-
Gets a result.
- get(Throwing.Supplier<? extends T, ?>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Attempts to get and encapsulate a result from the given supplier.
- get(Throwing.Supplier<? extends T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Attempts to get and encapsulate a result from the given supplier.
- get(Object) - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns the value to which the specified key is mapped.
- getCause() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns the cause contained in this instance.
- getCredentials() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns the credentials read from the first source containing credentials.
- getFilePath() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns the file path that is read from when considering the file source.
- getKeysType() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns the keys that this object is configure to read from the system properties and the environment.
- getMatchingChildren(Path, Throwing.Predicate<Path, IOException>, FileVisitOption...) - Static method in class io.github.oliviercailloux.jaris.io.PathUtils
-
Returns every path that is a child of the given
start
path, as if invokingFiles.find(start, Integer.MAX_VALUE)
, using the given filter to keep only the desired elements. - getResult() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns the result contained in this instance.
- getUsing(Throwing.Supplier<T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.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.
H
- hashCode() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
I
- ImmutableCompleteMap<K,V> - Interface in io.github.oliviercailloux.jaris.collections
-
An immutable map, providing all the guarantees of
ImmutableMap
, with the supplementary guarantee of being complete, meaning that its key set equals all possible instances ofK
. - IO_UNCHECKER - Static variable in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
An object that accepts functional interfaces that throw
IOException
instances; and that will throwUncheckedIOException
instances instead. - io.github.oliviercailloux.jaris - package io.github.oliviercailloux.jaris
-
A collection of various helpers and types that are felt to miss from the JDK, with a focus on best practices and well-designed API, similar to Guava in spirit.
- io.github.oliviercailloux.jaris.collections - package io.github.oliviercailloux.jaris.collections
- io.github.oliviercailloux.jaris.credentials - package io.github.oliviercailloux.jaris.credentials
-
A simple credentials reader.
- io.github.oliviercailloux.jaris.exceptions - package io.github.oliviercailloux.jaris.exceptions
-
Objects to deal with code that declare checked exceptions; or that throw exceptions.
- io.github.oliviercailloux.jaris.io - package io.github.oliviercailloux.jaris.io
- io.github.oliviercailloux.jaris.xml - package io.github.oliviercailloux.jaris.xml
- isEmpty() - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns
true
iff the key type cannot be instanciated. - isFailure() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Return
true
iff this instance contains a cause. - isSuccess() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns
true
iff this instance represents a success.
K
- keyReader() - Static method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns an instance reading from the key value
CredentialsReader.KeyCredential.API_KEY
, and the default fileCredentialsReader.DEFAULT_FILE_PATH
. - keySet() - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns the immutable set of all possible instances of type
K
, in the same order that they appear inImmutableCompleteMap.entrySet()
.
L
- limit(long) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the elements of this stream, truncated to be no longer than
maxSize
in length. - loadAndSave() - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
Initializes and returns the DOM helper service.
M
- map(Throwing.Function<? super T, ? extends R, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the results of applying the given function to the elements of this stream.
- max(Throwing.Comparator<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns the maximum element of this stream according to the provided
Comparator
. - maxBy(Throwing.Comparator<? super T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BinaryOperator
-
Returns a
Throwing.BinaryOperator
which returns the greater of two elements according to the specifiedComparator
. - min(Throwing.Comparator<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns the minimum element of this stream according to the provided
Comparator
. - minBy(Throwing.Comparator<? super T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BinaryOperator
-
Returns a
Throwing.BinaryOperator
which returns the lesser of two elements according to the specifiedComparator
.
N
- negate() - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiPredicate
-
Returns a predicate that represents the logical negation of this predicate.
- negate() - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Predicate
-
Returns a predicate that represents the logical negation of this predicate.
- noneMatch(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns whether no elements of this stream match the provided predicate.
- not(Throwing.Predicate<? super T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Predicate
-
Returns a throwing predicate that is the negation of the supplied predicate.
O
- or(Throwing.BiPredicate<? super T, ? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiPredicate
-
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
- or(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Predicate
-
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
- or(Throwing.Runnable<?>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAllVoid
-
If this instance is a failure, returns a
TryVoid
instance representing the result of invoking the given runnable; otherwise, returns this success. - or(Throwing.Runnable<? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryVoid
-
If this instance is a failure, returns a
TryVoid
instance representing the result of invoking the given runnable; otherwise, returns this success. - or(Throwing.Supplier<? extends T, ?>, Throwing.BiFunction<? super Throwable, ? super Throwable, ? extends Throwable, W>) - Method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns this instance if it is a success, or merges this instance with the one provided by the supplier.
- or(Throwing.Supplier<? extends T, Y>, Throwing.BiFunction<? super X, ? super Y, ? extends Z, W>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Returns this instance if it is a success; otherwise, returns a success if the supplier returns a non-
null
result.
P
- PathUtils - Class in io.github.oliviercailloux.jaris.io
-
A few helper methods generally useful when dealing with
Path
instances which are felt to miss from the JDK and Guava. - PathUtils() - Constructor for class io.github.oliviercailloux.jaris.io.PathUtils
- peek(Throwing.Consumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream.
- put(K, V) - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Deprecated.Unsupported operation.
- putAll(Map<? extends K, ? extends V>) - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Deprecated.Unsupported operation.
R
- reduce(Throwing.BinaryOperator<T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an
Optional
describing the reduced value, if any. - reduce(T, Throwing.BinaryOperator<T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value.
- reduce(U, Throwing.BiFunction<U, ? super T, U, ? extends X>, Throwing.BinaryOperator<U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs a reduction on the elements of this stream, using the provided identity, accumulation and combining functions.
- remove(Object) - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Deprecated.Unsupported operation.
- reversed() - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Returns a comparator that imposes the reverse ordering of this comparator.
- run() - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Runnable
-
Takes an action.
- run(Throwing.Runnable<?>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAllVoid
-
Attempts to run the given runnable, and returns a success if it succeeds or a failure containing the throwable thrown by the runnable if it throws.
- run(Throwing.Runnable<? extends X>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryVoid
-
Attempts to run the given runnable, and returns a success if it succeeds or a failure containing the checked exception thrown by the runnable if it threw one; otherwise, rethrows the non-checked throwable that the runnable threw.
S
- schemaHelper() - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
Provides an instance of a schema helper, and initializes a schema factory using
SchemaFactory.newInstance(String)
that reads W3C XML Schema 1.0. - schemaHelper(SchemaFactory) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
Provides an instance of a schema helper that will use the provided factory.
- setSchema(Source) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.SchemaHelper
-
Sets the schema that this validator will use when validating documents.
- size() - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns the number of possible instances of type
K
. - skip(long) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the remaining elements of this stream after discarding the first
n
elements of the stream. - sorted() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the elements of this stream, sorted according to natural order.
- sorted(Throwing.Comparator<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream consisting of the elements of this stream, sorted according to the provided
Comparator
. - success() - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAllVoid
-
Returns a success.
- success() - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryVoid
-
Returns a success.
- success(T) - Static method in interface io.github.oliviercailloux.jaris.exceptions.Try
-
Returns a success containing the given result.
- success(T) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Returns a success containing the given result.
T
- takeWhile(Throwing.Predicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns, if this stream is ordered, a checked stream consisting of the longest prefix of elements taken from this stream that match the given predicate.
- test(T) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Predicate
-
Evaluates this predicate on the given argument.
- test(T, U) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.BiPredicate
-
Evaluates this predicate on the given arguments.
- thenComparing(Throwing.Comparator<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Returns a lexicographic-order comparator with another comparator.
- thenComparing(Throwing.Function<? super T, ? extends U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Returns a lexicographic-order comparator with a function that extracts a
Comparable
sort key. - thenComparing(Throwing.Function<? super T, ? extends U, ? extends X>, Throwing.Comparator<? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Throwing.Comparator
-
Returns a lexicographic-order comparator with a function that extracts a key to be compared with the given
Throwing.Comparator
. - Throwing - Class in io.github.oliviercailloux.jaris.exceptions
-
Variations on the standard functional interfaces which can declare throwing throwables.
- Throwing.BiConsumer<T,U,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
BiConsumer
that may throw non-RuntimeException
throwables. - Throwing.BiFunction<T,U,R,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
BiFunction
that may throw non-RuntimeException
throwables. - Throwing.BinaryOperator<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
BinaryOperator
that may throw non-RuntimeException
throwables. - Throwing.BiPredicate<T,U,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
BiPredicate
that may throw non-RuntimeException
throwables. - Throwing.Comparator<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
Comparator
that may throw non-RuntimeException
throwables. - Throwing.Consumer<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
Consumer
that may throw non-RuntimeException
throwables. - Throwing.Function<T,R,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
Function
that may throw non-RuntimeException
throwables. - Throwing.Predicate<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
Predicate
that may throw non-RuntimeException
throwables. - Throwing.Runnable<X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
Runnable
that may throw non-RuntimeException
throwables. - Throwing.Supplier<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
Supplier
that may throw non-RuntimeException
throwables. - Throwing.UnaryOperator<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Equivalent of
UnaryOperator
that may throw non-RuntimeException
throwables. - toDebugString(Node) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils.DomHelper
-
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.DomHelper
-
Returns an immutable copy of the given list of nodes as a list of elements, using a proper generic collection.
- toList() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Accumulates the elements of this stream into an immutable list.
- toList(NodeList) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils.DomHelper
-
Returns an immutable copy of the given list of nodes, using a proper generic collection.
- toMap(Set<K>, Throwing.Function<? super K, V, X>) - Static method in class io.github.oliviercailloux.jaris.collections.CollectionUtils
-
Returns an immutable map with the given
keys
and whose value for each key was computed byvalueFunction
. - toString() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns a short debug string representing this object’s state.
- toString() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns a string representation of this object, suitable for debug.
- toString(Node) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.DomHelper
-
Returns a pretty-printed textual representation of the node.
- transform(Source, Result) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.Transformer
-
Transforms the provided document, using the “identity” transform.
- transform(Source, Source) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.Transformer
-
Transforms the provided document, using the provided stylesheet, and returns the result as a string.
- transformer() - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
Provides a transformer instance using the TransformerFactory builtin system-default implementation.
- transformer(TransformerFactory) - Static method in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
Provides a transformer instance using the provided factory.
- Try<T,X extends Exception> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Represents either a result or a failure and provides operations to deal with cases of successes and of failures in a unified way.
- TryCatchAll<T> - Interface in io.github.oliviercailloux.jaris.exceptions
-
Represents either a result or a failure and provides operations to deal with cases of successes and of failures in a unified way.
- TryCatchAllVoid - Interface in io.github.oliviercailloux.jaris.exceptions
-
A variant of
TryCatchAll
that contains no result in case of success. - TryOptional<T,X extends Throwable> - Interface in io.github.oliviercailloux.jaris.exceptions
-
The root of the
Try*
hierarchy, defining in the most general way the concepts of success, failure, and equality. - TryVoid<X extends Exception> - Interface in io.github.oliviercailloux.jaris.exceptions
-
A variant of
Try
that contains no result in case of success.
U
- Unchecker<X extends Exception,Y extends RuntimeException> - Class in io.github.oliviercailloux.jaris.exceptions
-
An object able to transform functional interfaces that throw checked exceptions into functional interfaces that throw only runtime exceptions; and able to invoke functional interfaces that throw checked exceptions.
- URI_UNCHECKER - Static variable in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
An object that accepts functional interfaces that throw
URISyntaxException
instances; and that will throwVerifyException
instances instead. - using(Class<K>, Path) - Static method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns an instance that will read from the sources configured with the given parameters.
V
- valueOf(String) - Static method in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.ClassicalCredentials
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.KeyCredential
-
Returns the enum constant of this class with the specified name.
- values() - Method in interface io.github.oliviercailloux.jaris.collections.ImmutableCompleteMap
-
Returns an immutable collection of the values in this map, in the same order that they appear in
ImmutableCompleteMap.entrySet()
. - values() - Static method in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.ClassicalCredentials
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.oliviercailloux.jaris.credentials.CredentialsReader.KeyCredential
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verifyValid(Source) - Method in class io.github.oliviercailloux.jaris.xml.XmlUtils.SchemaHelper
-
Throws an exception iff the provided document is invalid.
W
- wrapBiConsumer(Throwing.BiConsumer<? super T, ? super U, ? extends X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
Returns a bi consumer that simply delegates to the given bi consumer, except that any checked exception thrown by the given consumer is instead thrown by the returned consumer as an unchecked exception, applying the wrapper to transform it.
- wrapBiFunction(Throwing.BiFunction<? super F1, ? super F2, ? extends T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
Returns a bi function that simply delegates to the given bi function, except that any checked exception thrown by the given bi function is instead thrown by the returned bi function as an unchecked exception, applying the wrapper to transform it.
- wrapBinaryOperator(Throwing.BinaryOperator<F, ? extends X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
Returns a binary operator that simply delegates to the given binary operator, except that any checked exception thrown by the given binary operator is instead thrown by the returned binary operator as an unchecked exception, applying the wrapper to transform it.
- wrapComparator(Throwing.Comparator<? super T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
Returns a comparator that simply delegates to the given comparator, except that any checked exception thrown by the given comparator is instead thrown by the returned comparator as an unchecked exception, applying the wrapper to transform it.
- wrapConsumer(Throwing.Consumer<? super T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
Returns a consumer that simply delegates to the given consumer, except that any checked exception thrown by the given consumer is instead thrown by the returned consumer as an unchecked exception, applying the wrapper to transform it.
- wrapFunction(Throwing.Function<? super F, ? extends T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.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.
- wrapping(Stream<T>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream wrapping the given stream.
- wrappingWith(Function<X, Y>) - Static method in class io.github.oliviercailloux.jaris.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<? super F, ? extends X>) - Method in class io.github.oliviercailloux.jaris.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<? extends X>) - Method in class io.github.oliviercailloux.jaris.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<? extends T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.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_NS_URI - Static variable in class io.github.oliviercailloux.jaris.xml.XmlUtils
-
The XHTML namespace URI, defined to be
http://www.w3.org/1999/xhtml
. - XmlException(String) - Constructor for exception io.github.oliviercailloux.jaris.xml.XmlUtils.XmlException
-
Constructs a new exception with the specified detail message.
- XmlException(String, Throwable) - Constructor for exception io.github.oliviercailloux.jaris.xml.XmlUtils.XmlException
-
Constructs a new exception with the specified detail message and cause.
- XmlException(Throwable) - Constructor for exception io.github.oliviercailloux.jaris.xml.XmlUtils.XmlException
-
Constructs a new exception with the specified cause and a detail message of
(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). - XmlUtils - Class in io.github.oliviercailloux.jaris.xml
-
A few helper methods to deal with XML, using the Document Object Model, XSLT, or schema based validation.
- XmlUtils.DomHelper - Class in io.github.oliviercailloux.jaris.xml
-
Class that helps with DOM manipulation, in particular, serialization and deserialization, and with static methods for manipulating lists of nodes.
- XmlUtils.SchemaHelper - Class in io.github.oliviercailloux.jaris.xml
-
Helper for creating schemas and validating documents.
- XmlUtils.Transformer - Class in io.github.oliviercailloux.jaris.xml
-
Instances of this class make a best effort to log warnings and to fail fast (throwing an exception) if an error or a fatalError is raised during the parsing of the schema or of the document to transform.
- XmlUtils.XmlException - Exception in io.github.oliviercailloux.jaris.xml
-
A runtime exception indicating an unexpected exception relating to XML treatment, supposed to be generally not worth catching.
All Classes|All Packages|Serialized Form