DynamicTypeBindingRequest


public abstract class DynamicTypeBindingRequest


Holds the parameters needed by bind. It can be used as follows:

DynamicTypeBindingRequest request = DynamicTypeBindingRequest.forDynamicInt32(source,consumer);
BoundDynamicType boundType = evaluator.bind(request);

Summary

Public methods

static @NonNull DynamicTypeBindingRequest
forDynamicBool(
    @NonNull DynamicBuilders.DynamicBool boolSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Boolean> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

static @NonNull DynamicTypeBindingRequest
forDynamicColor(
    @NonNull DynamicBuilders.DynamicColor colorSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Integer> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

static @NonNull DynamicTypeBindingRequest

Creates a DynamicTypeBindingRequest from the given for binding.

static @NonNull DynamicTypeBindingRequest
forDynamicFloat(
    @NonNull DynamicBuilders.DynamicFloat floatSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Float> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

static @NonNull DynamicTypeBindingRequest

Creates a DynamicTypeBindingRequest from the given for binding.

static @NonNull DynamicTypeBindingRequest
forDynamicInt32(
    @NonNull DynamicBuilders.DynamicInt32 int32Source,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Integer> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

static @NonNull DynamicTypeBindingRequest
forDynamicString(
    @NonNull DynamicBuilders.DynamicString stringSource,
    @NonNull ULocale locale,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<String> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Public methods

forDynamicBool

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicBool(
    @NonNull DynamicBuilders.DynamicBool boolSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Boolean> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicBool boolSource

The given boolean dynamic type that should be evaluated.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<Boolean> consumer

The registered consumer for results of the evaluation.

forDynamicColor

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicColor(
    @NonNull DynamicBuilders.DynamicColor colorSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Integer> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicColor colorSource

The given color dynamic type that should be evaluated.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<Integer> consumer

The registered consumer for results of the evaluation.

forDynamicDuration

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicDuration(
    @NonNull DynamicBuilders.DynamicDuration durationSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Duration> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicDuration durationSource

The given duration dynamic type that should be evaluated.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<Duration> consumer

The registered consumer for results of the evaluation.

forDynamicFloat

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicFloat(
    @NonNull DynamicBuilders.DynamicFloat floatSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Float> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicFloat floatSource

The given float dynamic type that should be evaluated.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<Float> consumer

The registered consumer for results of the evaluation.

forDynamicInstant

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicInstant(
    @NonNull DynamicBuilders.DynamicInstant instantSource,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Instant> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicInstant instantSource

The given instant dynamic type that should be evaluated.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<Instant> consumer

The registered consumer for results of the evaluation.

forDynamicInt32

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicInt32(
    @NonNull DynamicBuilders.DynamicInt32 int32Source,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<Integer> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicInt32 int32Source

The given integer dynamic type that should be evaluated.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<Integer> consumer

The registered consumer for results of the evaluation.

forDynamicString

Added in 1.0.0
public static @NonNull DynamicTypeBindingRequest forDynamicString(
    @NonNull DynamicBuilders.DynamicString stringSource,
    @NonNull ULocale locale,
    @NonNull Executor executor,
    @NonNull DynamicTypeValueReceiver<String> consumer
)

Creates a DynamicTypeBindingRequest from the given for binding.

Results of evaluation will be sent through the given DynamicTypeValueReceiver on the given Executor.

Parameters
@NonNull DynamicBuilders.DynamicString stringSource

The given String dynamic type that should be evaluated.

@NonNull ULocale locale

The locale used for the given String source.

@NonNull Executor executor

The Executor to run the consumer on.

@NonNull DynamicTypeValueReceiver<String> consumer

The registered consumer for results of the evaluation.