Package io.dialob.client.api
Class ImmutableDialobClientConfig
- java.lang.Object
-
- io.dialob.client.api.ImmutableDialobClientConfig
-
- All Implemented Interfaces:
DialobClientConfig
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDialobClientConfig extends Object implements DialobClientConfig
Immutable implementation ofDialobClientConfig.Use the builder to create immutable instances:
ImmutableDialobClientConfig.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDialobClientConfig.BuilderBuilds instances of typeImmutableDialobClientConfig.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDialobClientConfig.Builderbuilder()Creates a builder forImmutableDialobClientConfig.static ImmutableDialobClientConfigcopyOf(DialobClientConfig instance)Creates an immutable copy of aDialobClientConfigvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDialobClientConfigthat have equal attribute values.AsyncFunctionInvokergetAsyncFunctionInvoker()DialobCachegetCache()DialobProgramFromFormCompilergetCompiler()DialobErrorHandlergetErrorHandler()QuestionnaireEventPublishergetEventPublisher()DialobSessionEvalContextFactorygetFactory()DialobClient.TypesMappergetMapper()DialobStoregetStore()inthashCode()Computes a hash code from attributes:store,cache,factory,asyncFunctionInvoker,eventPublisher,mapper,compiler,errorHandler.StringtoString()Prints the immutable valueDialobClientConfigwith attribute values.ImmutableDialobClientConfigwithAsyncFunctionInvoker(AsyncFunctionInvoker value)Copy the current immutable object by setting a value for theasyncFunctionInvokerattribute.ImmutableDialobClientConfigwithCache(DialobCache value)Copy the current immutable object by setting a value for thecacheattribute.ImmutableDialobClientConfigwithCompiler(DialobProgramFromFormCompiler value)Copy the current immutable object by setting a value for thecompilerattribute.ImmutableDialobClientConfigwithErrorHandler(DialobErrorHandler value)Copy the current immutable object by setting a value for theerrorHandlerattribute.ImmutableDialobClientConfigwithEventPublisher(QuestionnaireEventPublisher value)Copy the current immutable object by setting a value for theeventPublisherattribute.ImmutableDialobClientConfigwithFactory(DialobSessionEvalContextFactory value)Copy the current immutable object by setting a value for thefactoryattribute.ImmutableDialobClientConfigwithMapper(DialobClient.TypesMapper value)Copy the current immutable object by setting a value for themapperattribute.ImmutableDialobClientConfigwithStore(DialobStore value)Copy the current immutable object by setting a value for thestoreattribute.
-
-
-
Method Detail
-
getStore
public DialobStore getStore()
- Specified by:
getStorein interfaceDialobClientConfig- Returns:
- The value of the
storeattribute
-
getCache
public DialobCache getCache()
- Specified by:
getCachein interfaceDialobClientConfig- Returns:
- The value of the
cacheattribute
-
getFactory
public DialobSessionEvalContextFactory getFactory()
- Specified by:
getFactoryin interfaceDialobClientConfig- Returns:
- The value of the
factoryattribute
-
getAsyncFunctionInvoker
public AsyncFunctionInvoker getAsyncFunctionInvoker()
- Specified by:
getAsyncFunctionInvokerin interfaceDialobClientConfig- Returns:
- The value of the
asyncFunctionInvokerattribute
-
getEventPublisher
public QuestionnaireEventPublisher getEventPublisher()
- Specified by:
getEventPublisherin interfaceDialobClientConfig- Returns:
- The value of the
eventPublisherattribute
-
getMapper
public DialobClient.TypesMapper getMapper()
- Specified by:
getMapperin interfaceDialobClientConfig- Returns:
- The value of the
mapperattribute
-
getCompiler
public DialobProgramFromFormCompiler getCompiler()
- Specified by:
getCompilerin interfaceDialobClientConfig- Returns:
- The value of the
compilerattribute
-
getErrorHandler
public DialobErrorHandler getErrorHandler()
- Specified by:
getErrorHandlerin interfaceDialobClientConfig- Returns:
- The value of the
errorHandlerattribute
-
withStore
public final ImmutableDialobClientConfig withStore(DialobStore value)
Copy the current immutable object by setting a value for thestoreattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for store- Returns:
- A modified copy of the
thisobject
-
withCache
public final ImmutableDialobClientConfig withCache(DialobCache value)
Copy the current immutable object by setting a value for thecacheattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cache- Returns:
- A modified copy of the
thisobject
-
withFactory
public final ImmutableDialobClientConfig withFactory(DialobSessionEvalContextFactory value)
Copy the current immutable object by setting a value for thefactoryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for factory- Returns:
- A modified copy of the
thisobject
-
withAsyncFunctionInvoker
public final ImmutableDialobClientConfig withAsyncFunctionInvoker(AsyncFunctionInvoker value)
Copy the current immutable object by setting a value for theasyncFunctionInvokerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for asyncFunctionInvoker- Returns:
- A modified copy of the
thisobject
-
withEventPublisher
public final ImmutableDialobClientConfig withEventPublisher(QuestionnaireEventPublisher value)
Copy the current immutable object by setting a value for theeventPublisherattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventPublisher- Returns:
- A modified copy of the
thisobject
-
withMapper
public final ImmutableDialobClientConfig withMapper(DialobClient.TypesMapper value)
Copy the current immutable object by setting a value for themapperattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mapper- Returns:
- A modified copy of the
thisobject
-
withCompiler
public final ImmutableDialobClientConfig withCompiler(DialobProgramFromFormCompiler value)
Copy the current immutable object by setting a value for thecompilerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compiler- Returns:
- A modified copy of the
thisobject
-
withErrorHandler
public final ImmutableDialobClientConfig withErrorHandler(DialobErrorHandler value)
Copy the current immutable object by setting a value for theerrorHandlerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errorHandler- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableDialobClientConfigthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:store,cache,factory,asyncFunctionInvoker,eventPublisher,mapper,compiler,errorHandler.
-
toString
public String toString()
Prints the immutable valueDialobClientConfigwith attribute values.
-
copyOf
public static ImmutableDialobClientConfig copyOf(DialobClientConfig instance)
Creates an immutable copy of aDialobClientConfigvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable DialobClientConfig instance
-
builder
public static ImmutableDialobClientConfig.Builder builder()
Creates a builder forImmutableDialobClientConfig.ImmutableDialobClientConfig.builder() .store(io.dialob.client.api.DialobStore) // requiredstore.cache(io.dialob.client.api.DialobCache) // requiredcache.factory(io.dialob.program.DialobSessionEvalContextFactory) // requiredfactory.asyncFunctionInvoker(io.dialob.client.spi.function.AsyncFunctionInvoker) // requiredasyncFunctionInvoker.eventPublisher(io.dialob.client.spi.event.QuestionnaireEventPublisher) // requiredeventPublisher.mapper(io.dialob.client.api.DialobClient.TypesMapper) // requiredmapper.compiler(io.dialob.compiler.DialobProgramFromFormCompiler) // requiredcompiler.errorHandler(io.dialob.client.api.DialobErrorHandler) // requirederrorHandler.build();- Returns:
- A new ImmutableDialobClientConfig builder
-
-