public abstract static class StringListTrait.Builder<TRAIT extends StringListTrait,BUILDER extends StringListTrait.Builder> extends AbstractTraitBuilder<TRAIT,BUILDER>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BUILDER |
addValue(java.lang.String value)
Adds a value to the builder.
|
BUILDER |
clearValues()
Clears all values out of the builder.
|
java.util.List<java.lang.String> |
getValues()
Gets the values set in the builder.
|
BUILDER |
removeValue(java.lang.String value)
Removes a value from the builder.
|
BUILDER |
values(java.util.Collection<java.lang.String> values)
Replaces all of the values in the builder with the given values.
|
getSourceLocation, sourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, requiredState
public java.util.List<java.lang.String> getValues()
public BUILDER addValue(java.lang.String value)
value
- Value to add.public BUILDER values(java.util.Collection<java.lang.String> values)
values
- Value to replace into the builder.public BUILDER removeValue(java.lang.String value)
value
- Value to remove.public BUILDER clearValues()