Class DslExtensionState<R>
java.lang.Object
org.hibernate.search.engine.common.dsl.spi.DslExtensionState<R>
- Type Parameters:
R
- The result type to expect from functions applied to extended contexts.
A utility class holding the state of the extension contexts found in several DSLs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> void
ifSupported
(Object extension, Optional<E> extendedContextOptional, Function<E, ? extends R> extendedContextFunction) <T> R
<T> R
static <E> E
returnIfSupported
(Object extension, Optional<E> extendedContextOptional)
-
Constructor Details
-
DslExtensionState
public DslExtensionState()
-
-
Method Details
-
returnIfSupported
-
ifSupported
-
orElse
-
orElse
-
orElseFail
-