Package com.yahoo.vespa.config
Class ConfigPayloadBuilder.Array
java.lang.Object
com.yahoo.vespa.config.ConfigPayloadBuilder.Array
- Enclosing class:
- ConfigPayloadBuilder
Representation of a config array, which supports both INDEX and APPEND modes.
-
Constructor Summary
ConstructorDescriptionArray
(ConfigDefinition configDefinition, String name) Array
(ConfigPayloadBuilder.Array other) -
Method Summary
Modifier and TypeMethodDescriptionappend()
Create a new slime object and returns its payload builder.void
Append a value to this array.get
(int index) Get payload builder in this array corresponding to index.override
(ConfigPayloadBuilder.Array superior) void
resolve
(com.yahoo.slime.Cursor parent) set
(int index) Set Create a payload object for the given index and return it.void
Set the value of array element index to value
-
Constructor Details
-
Array
-
Array
-
-
Method Details
-
append
Append a value to this array.- Parameters:
value
- Value to append.
-
getElements
-
append
Create a new slime object and returns its payload builder. Append the element after all other elements in the array.- Returns:
- a payload builder for the new slime object.
-
set
Set the value of array element index to value- Parameters:
index
- Index of array element to set.value
- Value that the element should point to.
-
set
Set Create a payload object for the given index and return it. Any previously stored version will be overwritten.- Parameters:
index
- Index of new element.- Returns:
- The payload builder for the newly created slime object.
-
get
Get payload builder in this array corresponding to index. If it does not exist, create a new one.- Parameters:
index
- of element to get.- Returns:
- The corresponding ConfigPayloadBuilder.
-
resolve
public void resolve(com.yahoo.slime.Cursor parent) -
override
-