Class AttributeSpecBuilder.ParamsBuilder<P>
Object
ParamsBuilder<P>
- Type Parameters:
P- parent builder type
- Enclosing class:
- AttributeSpecBuilder<T>
Parameter builder class, used to set specific parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the attribute spec.Copies the parameters from the given map.done()Returns the parent builder.booleaninthashCode()Creates a new builder for creating an object inside the current builder's parameter space.Removes the given parameter.Sets the parameter.setAttribute(AttributeSpec<?> value) Special method to set the parameter "attribute" to the given attribute spec.setAttribute(String key, AttributeSpec<?> value) Special method to set a parameter to the given attribute spec.toString()
-
Method Details
-
done
Returns the parent builder.- Returns:
- parent builder
-
remove
Removes the given parameter.- Parameters:
key- parameter name- Returns:
- this builder
-
object
public AttributeSpecBuilder<T>.ParamsBuilder<AttributeSpecBuilder<T>.ParamsBuilder<P>> object(String key) Creates a new builder for creating an object inside the current builder's parameter space. This builder becomes the parent of the new builder.- Parameters:
key- parameter name- Returns:
- builder for the object that will be addressed by the given parameter name
-
set
Sets the parameter.- Parameters:
key- parameter namevalue- parameter value- Returns:
- this builder
-
setAttribute
Special method to set the parameter "attribute" to the given attribute spec.- Parameters:
value- attribute spec- Returns:
- this builder
- See Also:
-
setAttribute
Special method to set a parameter to the given attribute spec.- Parameters:
key- attribute namevalue- attribute spec- Returns:
- this builder
-
copyFrom
Copies the parameters from the given map.- Parameters:
map- map with parameters- Returns:
- this builder
-
build
Builds the attribute spec.- Returns:
- attribute spec
-
equals
-
hashCode
public int hashCode() -
toString
-