Interface TypedValueBuilder
-
- All Known Implementing Classes:
TypedValueBuilderImpl
public interface TypedValueBuilder
A fluent API for lazy initialization of a composite type value
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,? extends TypedFieldValue>
build()
Type
getType()
TypedValueBuilder
putField(String name, boolean value)
Put a named field valueTypedValueBuilder
putField(String name, boolean[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, byte value)
Put a named field valueTypedValueBuilder
putField(String name, byte[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, char value)
Put a named field valueTypedValueBuilder
putField(String name, char[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, double value)
Put a named field valueTypedValueBuilder
putField(String name, double[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, float value)
Put a named field valueTypedValueBuilder
putField(String name, float[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, int value)
Put a named field valueTypedValueBuilder
putField(String name, int[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, long value)
Put a named field valueTypedValueBuilder
putField(String name, long[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, short value)
Put a named field valueTypedValueBuilder
putField(String name, short[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, String value)
Put a named field valueTypedValueBuilder
putField(String name, String[] values)
Put a named field array of valuesTypedValueBuilder
putField(String name, Consumer<TypedValueBuilder> fieldValueCallback)
Put a named field lazily evaluated valueTypedValueBuilder
putField(String name, TypedValue value)
Put a named field valueTypedValueBuilder
putField(String name, TypedValue... values)
Put a named field array of valuesTypedValueBuilder
putField(String name, TypedValueBuilder valueBuilder)
Put a named field valueTypedValueBuilder
putFields(String name, Consumer<TypedValueBuilder> callback1, Consumer<TypedValueBuilder> callback2, Consumer<TypedValueBuilder>... otherCallbacks)
Put a named field array of lazily evaluated values
-
-
-
Method Detail
-
getType
Type getType()
-
putField
TypedValueBuilder putField(String name, byte value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, byte[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, char value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, char[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, short value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, short[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, int value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, int[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, long value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, long[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, float value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, float[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, double value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, double[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, boolean value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, boolean[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, String value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, String[] values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, TypedValueBuilder valueBuilder)
Put a named field value- Parameters:
name
- field namevalueBuilder
- field value builder- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, TypedValue value)
Put a named field value- Parameters:
name
- field namevalue
- field value- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, TypedValue... values)
Put a named field array of values- Parameters:
name
- field namevalues
- field values- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putField
TypedValueBuilder putField(String name, Consumer<TypedValueBuilder> fieldValueCallback)
Put a named field lazily evaluated value- Parameters:
name
- field namefieldValueCallback
- field value builder- Returns:
- a TypedValueBuilder instance for invocation chaining
-
putFields
TypedValueBuilder putFields(String name, Consumer<TypedValueBuilder> callback1, Consumer<TypedValueBuilder> callback2, Consumer<TypedValueBuilder>... otherCallbacks)
Put a named field array of lazily evaluated values- Parameters:
name
- field namecallback1
- first field value builder callbackcallback2
- second field value builder callbackotherCallbacks
- other field value builder callbacks field value builders- Returns:
- a TypedValueBuilder instance for invocation chaining
-
build
Map<String,? extends TypedFieldValue> build()
-
-