Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(T) - Method in interface io.github.oliviercailloux.jaris.throwing.TConsumer
-
Performs this operation on the given argument.
- accept(T, U) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiConsumer
-
Performs this operation on the given arguments.
- allMatch(TPredicate<? 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(Try<U, ? extends X>, TBiFunction<? 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>, TBiFunction<? 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
. - and(TBiPredicate<? super T, ? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiPredicate
-
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
- and(TPredicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TPredicate
-
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
- andApply(TFunction<? 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(TFunction<? 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(TConsumer<? 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(TConsumer<? 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(TSupplier<? 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(TSupplier<? 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(TRunnable<?>) - 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(TRunnable<?>) - 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(TRunnable<? 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(TRunnable<? 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(TBiConsumer<? super T, ? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiConsumer
-
Returns a composed
Throwing.BiConsumer
that performs, in sequence, this operation followed by theafter
operation. - andThen(TConsumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TConsumer
-
Returns a composed
Throwing.Consumer
that performs, in sequence, this operation followed by theafter
operation. - andThen(TFunction<? super R, ? extends V, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiFunction
-
Returns a composed function that first applies this function to its input, and then applies the
after
function to the result. - andThen(TFunction<? super R, ? extends V, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TFunction
-
Returns a composed function that first applies this function to its input, and then applies the
after
function to the result. - anyMatch(TPredicate<? 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() - Method in record class io.github.oliviercailloux.jaris.credentials.KeyCredential
-
Returns the value of the
API_KEY
record component. - API_PASSWORD() - Method in record class io.github.oliviercailloux.jaris.credentials.Credentials
-
Returns the value of the
API_PASSWORD
record component. - API_USERNAME() - Method in record class io.github.oliviercailloux.jaris.credentials.Credentials
-
Returns the value of the
API_USERNAME
record component. - apply(T) - Method in interface io.github.oliviercailloux.jaris.throwing.TFunction
-
Applies this function to the given argument.
- apply(T, U) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiFunction
-
Applies this function to the given arguments.
- asDocument(StreamSource) - Method in class io.github.oliviercailloux.jaris.xml.DomHelper
-
Retrieves the content of the given stream as a document.
- asFullName() - Method in class io.github.oliviercailloux.jaris.xml.XmlName
-
Returns this xml name as a string, using the {URI}localName form.
- asGraph(List<? extends E>) - Static method in class io.github.oliviercailloux.jaris.collections.GraphUtils
-
Returns a copy of the given list representing the “has-as-next-element” relation.
- asGraph(Set<F>, SuccessorsFunction<F>, PredecessorsFunction<F>) - Static method in class io.github.oliviercailloux.jaris.collections.GraphUtils
-
Returns a mutable graph corresponding to the given nodes and reachability relations.
- asMap() - Method in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
- asSchema(Source) - Method in class io.github.oliviercailloux.jaris.xml.SchemaHelper
-
Produces the schema corresponding to the given source, or throws.
C
- call(TRunnable<X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Unchecked
-
Calls the given runnable; if it throws a checked exception, throws a transformed exception instead, applying the wrapper; if the runnable throws an unchecked exception, the exception is thrown unchanged.
- call(TRunnable<X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
- 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
Credentials.API_USERNAME
andCredentials.API_PASSWORD
, and the default fileCredentialsReader.DEFAULT_FILE_PATH
. - collect(TSupplier<R, ? extends X>, TBiConsumer<R, ? super T, ? extends X>, TBiConsumer<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.ValueTransformer<K,
L, V, W, X extends Exception> - Interface in io.github.oliviercailloux.jaris.collections - compare(T, T) - Method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
Compares its two arguments for order.
- comparing(TFunction<? super T, ? extends U, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
Accepts a function that extracts a
Comparable
sort key from a typeT
, and returns aThrowing.Comparator<T>
that compares by that sort key. - comparing(TFunction<? super T, ? extends U, ? extends X>, TComparator<? super U, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
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 specifiedTComparator
. - compose(TFunction<? super V, ? extends T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TFunction
-
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. - conformityChecker(Schema) - Method in class io.github.oliviercailloux.jaris.xml.SchemaHelper
-
Returns a conformity checker that will validate documents against the provided schema.
- ConformityChecker - Class in io.github.oliviercailloux.jaris.xml
-
Helper for validating documents.
- convertingToVerifyException() - Static method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
-
Returns an object that will transform checked exception instances to
VerifyException
instances, if any checked exception happens. - count() - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns the count of elements in this stream.
- createDocument(String, String) - Method in class io.github.oliviercailloux.jaris.xml.DomHelper
-
Creates a DOM Document with the specified document element.
- Credentials - Record Class in io.github.oliviercailloux.jaris.credentials
- Credentials(String, String) - Constructor for record class io.github.oliviercailloux.jaris.credentials.Credentials
-
Creates an instance of a
Credentials
record class. - CredentialsReader<K> - Class in io.github.oliviercailloux.jaris.credentials
-
This class permits to read a user’s credentials (authentication information) from various sources.
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. - domHelper() - Static method in class io.github.oliviercailloux.jaris.xml.DomHelper
-
Initializes and returns the DOM helper service.
- 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.
- dropWhile(TPredicate<? 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() - Static method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
Returns an empty
TOptional
instance. - equals(Object) - Method in record class io.github.oliviercailloux.jaris.credentials.Credentials
-
Indicates whether some other object is "equal to" this one.
- 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 record class io.github.oliviercailloux.jaris.credentials.KeyCredential
-
Indicates whether some other object is "equal to" this one.
- 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. - equals(Object) - Method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
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 class io.github.oliviercailloux.jaris.throwing.TOptional
-
Indicates whether some other object is "equal to" this
Optional
. - equals(Object) - Method in class io.github.oliviercailloux.jaris.xml.XmlName
- expandedName(URI, String) - Static method in class io.github.oliviercailloux.jaris.xml.XmlName
-
Returns an expanded name representing the given namespace and local name.
F
- FACTORY_PROPERTY - Static variable in class io.github.oliviercailloux.jaris.xml.XmlTransformer
- 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(TPredicate<? 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.
- filter(TPredicate<? super T, X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, and the value matches the given predicate, returns an
Optional
describing the value, otherwise returns an emptyOptional
. - 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(TFunction<? super T, ? extends TOptional<? extends U>, X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns the result of applying the given
Optional
-bearing mapping function to the value, otherwise returns an emptyOptional
. - flatMap(TFunction<? 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(TConsumer<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Performs an action for each element of this stream.
- forEachOrdered(TConsumer<? 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()
. - fromMap(Map<XmlName, Boolean>) - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
G
- generate(TSupplier<? 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.throwing.TSupplier
-
Gets a result.
- get(TSupplier<? extends T, ?>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.TryCatchAll
-
Attempts to get and encapsulate a result from the given supplier.
- get(TSupplier<? 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.
- 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, TPredicate<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(TSupplier<T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.exceptions.Unchecked
-
Attempts to get and return a result from the given supplier; if the supplier throws a checked exception, throws a transformed exception instead, applying the wrapper; if the supplier throws an unchecked exception, the exception is thrown unchanged.
- getUsing(TSupplier<T, ? extends X>) - Method in class io.github.oliviercailloux.jaris.exceptions.Unchecker
- GraphUtils - Class in io.github.oliviercailloux.jaris.collections
H
- hashCode() - Method in record class io.github.oliviercailloux.jaris.credentials.Credentials
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
- hashCode() - Method in record class io.github.oliviercailloux.jaris.credentials.KeyCredential
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
Returns the hash code of the value, if present, otherwise
0
(zero) if no value is present. - hashCode() - Method in class io.github.oliviercailloux.jaris.xml.XmlName
- html() - Method in class io.github.oliviercailloux.jaris.xml.DomHelper
-
Creates a new HTML DOM Document, containing only the HTML document element.
- HTML_NS_URI - Static variable in class io.github.oliviercailloux.jaris.xml.DomHelper
-
The HTML namespace URI, defined as
http://www.w3.org/1999/xhtml
.
I
- ifPresent(TConsumer<? super T, X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, performs the given action with the value, otherwise does nothing.
- ifPresentOrElse(TConsumer<? super T, ? extends X>, TRunnable<? extends X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, performs the given action with the value, otherwise performs the given empty-based action.
- indent() - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
- INDENT - Static variable in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
-
specifies whether the Transformer may add additional whitespace when outputting the result tree
- 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.throwing - package io.github.oliviercailloux.jaris.throwing
-
Variations on the standard functional interfaces which can declare throwing throwables.
- io.github.oliviercailloux.jaris.xml - package io.github.oliviercailloux.jaris.xml
-
A few helper classes to deal with XML, using the Document Object Model, XSLT, or schema based validation.
- isEmpty() - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is not present, returns
true
, otherwisefalse
. - isFailure() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Return
true
iff this instance contains a cause. - isPresent() - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns
true
, otherwisefalse
. - isSuccess() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns
true
iff this instance represents a success.
K
- KeyCredential - Record Class in io.github.oliviercailloux.jaris.credentials
- KeyCredential(String) - Constructor for record class io.github.oliviercailloux.jaris.credentials.KeyCredential
-
Creates an instance of a
KeyCredential
record class. - keyReader() - Static method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns an instance reading from the key value
KeyCredential.API_KEY
, and the default fileCredentialsReader.DEFAULT_FILE_PATH
.
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. - localName(String) - Static method in class io.github.oliviercailloux.jaris.xml.XmlName
-
Returns an xml name representing the given local name, without namespace.
M
- map(TFunction<? 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.
- map(TFunction<? super T, ? extends U, X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns an
Optional
describing (as if byTOptional.ofNullable(T)
) the result of applying the given mapping function to the value, otherwise returns an emptyOptional
. - max(TComparator<? 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(TComparator<? super T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.throwing.TBinaryOperator
-
Returns a
TBinaryOperator
which returns the greater of two elements according to the specifiedComparator
. - min(TComparator<? 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(TComparator<? super T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.throwing.TBinaryOperator
-
Returns a
TBinaryOperator
which returns the lesser of two elements according to the specifiedComparator
.
N
- negate() - Method in interface io.github.oliviercailloux.jaris.throwing.TBiPredicate
-
Returns a predicate that represents the logical negation of this predicate.
- negate() - Method in interface io.github.oliviercailloux.jaris.throwing.TPredicate
-
Returns a predicate that represents the logical negation of this predicate.
- noIndent() - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
- none() - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
- noneMatch(TPredicate<? 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(TPredicate<? super T, ? extends X>) - Static method in interface io.github.oliviercailloux.jaris.throwing.TPredicate
-
Returns a throwing predicate that is the negation of the supplied predicate.
O
- of(T) - Static method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
Returns a
TOptional
describing the given non-null
value. - ofNullable(T) - Static method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
Returns a
TOptional
describing the given value, if non-null
, otherwise returns an emptyTOptional
. - OMIT_XML_DECLARATION - Static variable in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
- omitXmlDeclaration() - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
- or(TBiPredicate<? super T, ? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiPredicate
-
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
- or(TPredicate<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TPredicate
-
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
- or(TRunnable<?>) - 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(TRunnable<? 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(TSupplier<? extends TOptional<? extends T>, X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns an
Optional
describing the value, otherwise returns anOptional
produced by the supplying function. - or(TSupplier<? extends T, ?>, TBiFunction<? 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(TSupplier<? extends T, Y>, TBiFunction<? 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. - orElse(T) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns the value, otherwise returns
other
. - orElseGet(TSupplier<? extends T, X>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns the value, otherwise returns the result produced by the supplying function.
- orElseThrow() - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns the value, otherwise throws
NoSuchElementException
. - orElseThrow(TSupplier<? extends X, Y>) - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.
- OutputProperties(Map<XmlName, Boolean>) - Constructor for class io.github.oliviercailloux.jaris.xml.XmlTransformer.OutputProperties
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
- pedanticTransformer(TransformerFactory) - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Provides a transformer instance using the provided factory.
- peek(TConsumer<? 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.
R
- reduce(TBinaryOperator<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, TBinaryOperator<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, TBiFunction<U, ? super T, U, ? extends X>, TBinaryOperator<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.
- reversed() - Method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
Returns a comparator that imposes the reverse ordering of this comparator.
- run() - Method in interface io.github.oliviercailloux.jaris.throwing.TRunnable
-
Takes an action.
- run(TRunnable<?>) - 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(TRunnable<? 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.SchemaHelper
-
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.SchemaHelper
-
Provides an instance of a schema helper that will use the provided factory.
- SchemaHelper - Class in io.github.oliviercailloux.jaris.xml
-
Helper for creating schemas and validating documents.
- 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(TComparator<? 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
. - stream() - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
If a value is present, returns a sequential
Stream
containing only that value, otherwise returns an emptyStream
. - 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.
- svg() - Method in class io.github.oliviercailloux.jaris.xml.DomHelper
-
Creates a new SVG DOM Document, containing only the SVG document element.
- SVG_NS_URI - Static variable in class io.github.oliviercailloux.jaris.xml.DomHelper
-
The SVG 2 namespace URI, defined as
http://www.w3.org/2000/svg
, as in earlier versions of SVG
T
- takeWhile(TPredicate<? 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.
- TBiConsumer<T,
U, X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
BiConsumer
that may throw instances of typeX
, not justRuntimeException
instances. - TBiFunction<T,
U, R, X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
BiFunction
that may throw instances of typeX
, not justRuntimeException
instances. - TBinaryOperator<T,
X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
BinaryOperator
that may throw instances of typeX
, not justRuntimeException
instances. - TBiPredicate<T,
U, X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
BiPredicate
that may throw instances of typeX
, not justRuntimeException
instances. - TComparator<T,
X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
Comparator
that may throw instances of typeX
, not justRuntimeException
instances. - TConsumer<T,
X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing - test(T) - Method in interface io.github.oliviercailloux.jaris.throwing.TPredicate
-
Evaluates this predicate on the given argument.
- test(T, U) - Method in interface io.github.oliviercailloux.jaris.throwing.TBiPredicate
-
Evaluates this predicate on the given arguments.
- TFunction<T,
R, X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing - thenComparing(TComparator<? super T, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
Returns a lexicographic-order comparator with another comparator.
- thenComparing(TFunction<? super T, ? extends U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
Returns a lexicographic-order comparator with a function that extracts a
Comparable
sort key. - thenComparing(TFunction<? super T, ? extends U, ? extends X>, TComparator<? super U, ? extends X>) - Method in interface io.github.oliviercailloux.jaris.throwing.TComparator
-
Returns a lexicographic-order comparator with a function that extracts a key to be compared with the given
Throwing.Comparator
. - toDebugString(Node) - Static method in class io.github.oliviercailloux.jaris.xml.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.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.DomHelper
-
Returns an immutable copy of the given list of nodes, using a proper generic collection.
- toMap(Set<K>, TFunction<? 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
. - topologicallySortedNodes(Graph<N>) - Static method in class io.github.oliviercailloux.jaris.collections.GraphUtils
-
From jbduncan.
- TOptional<T> - Class in io.github.oliviercailloux.jaris.throwing
-
An enhanced version of
Optional
, with methods that accept throwing functionals. - toString() - Method in record class io.github.oliviercailloux.jaris.credentials.Credentials
-
Returns a string representation of this record class.
- toString() - Method in class io.github.oliviercailloux.jaris.credentials.CredentialsReader
-
Returns a short debug string representing this object’s state.
- toString() - Method in record class io.github.oliviercailloux.jaris.credentials.KeyCredential
-
Returns a string representation of this record class.
- toString() - Method in interface io.github.oliviercailloux.jaris.exceptions.TryOptional
-
Returns a string representation of this object, suitable for debug.
- toString() - Method in class io.github.oliviercailloux.jaris.throwing.TOptional
-
Returns a non-empty string representation of this
Optional
suitable for debugging. - toString() - Method in class io.github.oliviercailloux.jaris.xml.XmlName
- toString(Node) - Method in class io.github.oliviercailloux.jaris.xml.DomHelper
-
Returns a pretty-printed textual representation of the node.
- TPredicate<T,
X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
Predicate
that may throw instances of typeX
, not justRuntimeException
instances. - transform(Graph<E>, TFunction<? super E, ? extends F, X>) - Static method in class io.github.oliviercailloux.jaris.collections.GraphUtils
-
Returns a transformation of a graph that uses a given mapping.
- transform(Source) - Method in interface io.github.oliviercailloux.jaris.xml.XmlConfiguredTransformer
-
Transforms the provided document and returns the result as a string.
- transform(Source, Result) - Method in interface io.github.oliviercailloux.jaris.xml.XmlConfiguredTransformer
-
Transforms the provided document.
- transform(K, L, V) - Method in interface io.github.oliviercailloux.jaris.collections.CollectionUtils.ValueTransformer
- transformed(Graph<E>, Map<? super E, ? extends F>) - Static method in class io.github.oliviercailloux.jaris.collections.GraphUtils
-
Returns a transformation of a graph that uses a given mapping.
- transformKeys(Map<K, V>, TFunction<? super K, L, X>) - Static method in class io.github.oliviercailloux.jaris.collections.CollectionUtils
-
Returns an immutable map containing as many entries as the provided one, with keys transformed, provided the given function maps different keys to different new keys (i.e., is injective).
- transformKeysAndValues(Map<K, V>, TFunction<? super K, L, X>, CollectionUtils.ValueTransformer<? super K, ? super L, ? super V, W, Y>) - Static method in class io.github.oliviercailloux.jaris.collections.CollectionUtils
-
Returns an immutable map containing as many entries as the provided one, with keys and values transformed, provided the given key function maps different keys to different new keys (i.e., is injective).
- transitiveClosure(Graph<E>) - Static method in class io.github.oliviercailloux.jaris.collections.GraphUtils
-
Computes the transitive closure of the given graph, understood as not implying reflexivity.
- TRunnable<X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing
- 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. - TSupplier<T,
X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing - TUnaryOperator<T,
X extends Throwable> - Interface in io.github.oliviercailloux.jaris.throwing -
Generalization of
UnaryOperator
that may throw instances of typeX
, not justRuntimeException
instances.
U
- Unchecked<X extends Exception,
Y extends Exception> - Interface in io.github.oliviercailloux.jaris.exceptions - 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.
- usingEmptyStylesheet() - Method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Returns a sourced transformer that may be used to transform documents using the “identity” transform and a default output property
XmlTransformer.OutputProperties.INDENT
. - usingFactory(TransformerFactory) - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Provides a transformer instance using the provided factory.
- usingFoundFactory() - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Provides a transformer instance using the TransformerFactory found using the JAXP Lookup Mechanism, thus, equivalent to the one obtained with
TransformerFactory.newInstance()
. - usingStylesheet(Source) - Method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Returns a sourced transformer that may be used to transform documents using the provided stylesheet and a default output property
XmlTransformer.OutputProperties.INDENT
. - usingStylesheet(Source, Map<XmlName, String>) - Method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Returns a sourced transformer that may be used to transform documents using the provided stylesheet parameterized with the given parameters and using a default output property
XmlTransformer.OutputProperties.INDENT
. - usingStylesheet(Source, Map<XmlName, String>, XmlTransformer.OutputProperties) - Method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Returns a sourced transformer that may be used to transform documents using the provided stylesheet parameterized with the given parameters.
- usingSystemDefaultFactory() - Static method in class io.github.oliviercailloux.jaris.xml.XmlTransformer
-
Provides a transformer instance using the TransformerFactory builtin system-default implementation, thus, equivalent to the one obtained with
TransformerFactory.newDefaultInstance()
.
V
- verifyValid(Source) - Method in class io.github.oliviercailloux.jaris.xml.ConformityChecker
-
Throws an exception iff the provided document is invalid.
W
- wrapBiConsumer(TBiConsumer<? 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(TBiFunction<? 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(TBinaryOperator<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(TComparator<? 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(TConsumer<? 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(TFunction<? 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.
- wrapper - Variable in class io.github.oliviercailloux.jaris.exceptions.Unchecker
- wrapping(Optional<? extends T>) - Static method in class io.github.oliviercailloux.jaris.throwing.TOptional
- wrapping(Stream<T>) - Static method in interface io.github.oliviercailloux.jaris.exceptions.CheckedStream
-
Returns a checked stream wrapping the given stream.
- wrappingToGeneral(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.
- 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(TPredicate<? 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(TRunnable<? 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(TSupplier<? 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
- XmlConfiguredTransformer - Interface in io.github.oliviercailloux.jaris.xml
-
A transformer configured with a given stylesheet, ready to transform conforming documents.
- 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.
- XmlException(String) - Constructor for exception io.github.oliviercailloux.jaris.xml.XmlException
-
Constructs a new exception with the specified detail message.
- XmlException(String, Throwable) - Constructor for exception io.github.oliviercailloux.jaris.xml.XmlException
-
Constructs a new exception with the specified detail message and cause.
- XmlException(Throwable) - Constructor for exception io.github.oliviercailloux.jaris.xml.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
). - XmlName - Class in io.github.oliviercailloux.jaris.xml
-
Either just a local name (in which case its namespace name has no value), or an expanded name, thus consisting in a namespace name and a local name.
- XmlTransformer - Class in io.github.oliviercailloux.jaris.xml
-
Instances of this class make a best effort to log warnings (unless configured otherwise) 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.
- XmlTransformer.OutputProperties - Class in io.github.oliviercailloux.jaris.xml
-
See https://www.w3.org/TR/2021/REC-xslt20-20210330/#serialization
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form