Sets the key
bean property in the folding
object
Sets the key
bean property in the folding
object
note: Unlike most implementations of Builder, this will mutate folding
the object to be added to. Must be either the return value of init or the return value of apply
the key of a key-value pair
the input to a parser
a parser for turning input into a value
the input parameter folding
maybe check for other primitive numeric types - IE a setVal(Short)
when handed a Long
or visa versa
Change the type of value that this builder requires, with the option of indicating an error condition
Change the type of value that this builder requires, with the option of indicating an error condition
3.0
Creates an instance of clazz by calling the class's No Argument constructor.
Creates an instance of clazz by calling the class's No Argument constructor.
Change the type of key that this builder requires
Change the type of key that this builder requires
a conversion function from the new key to this's key
3.0
Change the type of value that this builder requires
Change the type of value that this builder requires
a conversion function from the new value to this's value
3.0
A builder that builds a JavaBean
As with anything that works with java beans, this requires the class to have a zero-argument constructor and will interact with methods of the form
setX
.the parser's primitive values
the type of object to build
(Since version 3.0) Terribly un type-safe. Either create a new Builder subclass or an instance of PiecewiseBuilder
3.0