Class ListArgumentBag
java.lang.Object
be.seeseemelk.llamascript.arguments.ListArgumentBag
- All Implemented Interfaces:
ArgumentBag
A bag of arguments that will keep the order in which the arguments were added.
The arguments are added with an index, which starts at one for the first argument.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an argument to the bag.static ListArgumentBag
Creates an argument bag from an array of values.void
writeTo
(StringBuilder builder) Writes the values inside the argument bag to a StringBuilder.
-
Constructor Details
-
ListArgumentBag
public ListArgumentBag()
-
-
Method Details
-
add
Adds an argument to the bag.- Parameters:
value
- The argument to add.- Returns:
- This instance.
-
writeTo
Description copied from interface:ArgumentBag
Writes the values inside the argument bag to a StringBuilder.- Specified by:
writeTo
in interfaceArgumentBag
- Parameters:
builder
- The StringBuilder to write to.
-
of
Creates an argument bag from an array of values.- Parameters:
values
- The values to add.- Returns:
- The bag with the arguments added.
-