Interface ITupleValueBuilder
-
- All Superinterfaces:
org.apache.commons.lang3.builder.Builder<List<?>>,ISubTypeValueBuilder<List<?>,ITupleValueBuilder>,IValueBuilder<List<?>>,IValueConfigurator
public interface ITupleValueBuilder extends ISubTypeValueBuilder<List<?>,ITupleValueBuilder>
AIValueBuilderfor creating a tuple value.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default ITupleValueBuilderasThis()ITupleValueBuilderset(int index, IValueCreator creator)Sets the value at the given index of the tuple.default ITupleValueBuilderset(int index, Class<?> memberClass, IValueCreator creator)Deprecated.default ITupleValueBuilderset(int index, Object value)Sets the value at the given index of the tuple.default ITupleValueBuildervalue(Object value)Applies the given value to this builder.-
Methods inherited from interface de.xima.fc.interfaces.workflow.value.ISubTypeValueBuilder
whenBoolean, whenConst, whenFloat, whenInteger, whenList, whenMap, whenNull, whenRecord, whenString, whenTuple, whenUnion, whenVoid
-
-
-
-
Method Detail
-
asThis
default ITupleValueBuilder asThis()
- Specified by:
asThisin interfaceISubTypeValueBuilder<List<?>,ITupleValueBuilder>- Returns:
- This instance.
-
set
@Deprecated default ITupleValueBuilder set(int index, Class<?> memberClass, IValueCreator creator)
Deprecated.Sets the value at the given index of the tuple.- Parameters:
index- Index in the tuple, starting at0.memberClass- Class of the tuple element value.creator- Creator for the value of the tuple element.- Returns:
- This value builder for chaining methods calls.
-
set
ITupleValueBuilder set(int index, IValueCreator creator)
Sets the value at the given index of the tuple.- Parameters:
index- Index in the tuple, starting at0.creator- Creator for the value of the tuple element.- Returns:
- This value builder for chaining methods calls.
-
set
default ITupleValueBuilder set(int index, Object value)
Sets the value at the given index of the tuple.- Parameters:
index- Index in the tuple, starting at0.value- Value of the tuple element.- Returns:
- This value builder for chaining methods calls.
-
value
default ITupleValueBuilder value(Object value)
Description copied from interface:IValueConfiguratorApplies the given value to this builder. Implementations are allowed to perform validity checks on the passed value and reject the given value or parts of it (in case of lists etc.) when they do not conform to the restrictions imposed by this builder.- Specified by:
valuein interfaceISubTypeValueBuilder<List<?>,ITupleValueBuilder>- Specified by:
valuein interfaceIValueBuilder<List<?>>- Specified by:
valuein interfaceIValueConfigurator- Parameters:
value- Sets the value created by this builder.- Returns:
- getThis() builder instance for chaining method calls.
-
-