public interface AttributeBuilder
Attribute
s.Modifier and Type | Method and Description |
---|---|
Attribute |
build()
Builds the
Attribute with the set parameters. |
AttributeBuilder |
defaultValue(double defaultValue)
Sets the default value of the
Attribute to be built. |
AttributeBuilder |
id(String id)
Sets the id of the
Attribute to be built. |
AttributeBuilder |
maximum(double maximum)
Sets the maximum value of the
Attribute to be built. |
AttributeBuilder |
minimum(double minimum)
Sets the minimum value of the
Attribute to be built. |
AttributeBuilder |
name(Text name)
Sets the name of the
Attribute to be built. |
AttributeBuilder |
reset()
Resets this builder, to be used again.
|
AttributeBuilder |
targets(java.util.function.Predicate<DataHolder> targets)
Sets the targets of the
Attribute to be built. |
AttributeBuilder id(String id)
Attribute
to be built.id
- The id to useAttributeBuilder minimum(double minimum)
Attribute
to be built.minimum
- The value to useAttributeBuilder maximum(double maximum)
Attribute
to be built.maximum
- The value to useAttributeBuilder defaultValue(double defaultValue)
Attribute
to be built.defaultValue
- The value to useAttributeBuilder targets(java.util.function.Predicate<DataHolder> targets)
Attribute
to be built.targets
- A predicate to validate targetsAttributeBuilder name(Text name)
Attribute
to be built.name
- The name to useAttribute build()
Attribute
with the set parameters.AttributeBuilder reset()