Package org.aksw.jena_sparql_api.core
Class FluentFnBase<T,P>
java.lang.Object
org.aksw.jena_sparql_api.core.FluentBase<Function<T,T>,P>
org.aksw.jena_sparql_api.core.FluentFnBase<T,P>
- Type Parameters:
T-P-
- All Implemented Interfaces:
ParentSuppliable<P>
- Direct Known Subclasses:
FluentQueryExecutionFactoryFn,FluentSparqlServiceFactoryFn,FluentSparqlServiceFn,FluentUpdateExecutionFactoryFn
Abstract class upon Fluent APIs for functions can be built.
Provides .compose() and default behavior for .create() and .end() (i.e. returns an identity function if fn is null)
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanControls chaining order when composing functions.Fields inherited from class org.aksw.jena_sparql_api.core.FluentBase
fn, parentSupplier -
Constructor Summary
ConstructorsConstructorDescriptionFluentFnBase(boolean reverseChaining) FluentFnBase(Function<T, T> fn, boolean defaultReverseChaining) -
Method Summary
Methods inherited from class org.aksw.jena_sparql_api.core.FluentBase
create, end, setParentSupplier
-
Field Details
-
defaultReverseChaining
protected boolean defaultReverseChainingControls chaining order when composing functions. As a rule of thumb: If the fluent successively wraps an object, reverse the chain direction, so that first fluent call corresponds to the last wrapper on which methods are invoked first. If a fluent keeps replacing an object with a new one (i.e. no wrapping), chaining can be done in order, so that the last fluent call corresponds to the last replacement
-
-
Constructor Details
-
FluentFnBase
public FluentFnBase(boolean reverseChaining) -
FluentFnBase
-
-
Method Details
-
compose
-
value
Description copied from class:FluentBaseCreate the result value. This method should *never* be used directly by client code - instead, use create(). However, it may be useful for debugging.
-