P
- parent builder typepublic class AttributeSpecBuilder.ParamsBuilder<P> extends Object
Modifier and Type | Method and Description |
---|---|
AttributeSpec<T> |
build()
Builds the attribute spec.
|
AttributeSpecBuilder.ParamsBuilder<P> |
copyFrom(Map<String,Object> map)
Copies the parameters from the given map.
|
P |
done()
Returns the parent builder.
|
boolean |
equals(Object o) |
int |
hashCode() |
AttributeSpecBuilder.ParamsBuilder<AttributeSpecBuilder.ParamsBuilder<P>> |
object(String key)
Creates a new builder for creating an object inside the current builder's parameter space.
|
AttributeSpecBuilder.ParamsBuilder<P> |
remove(String key)
Removes the given parameter.
|
AttributeSpecBuilder.ParamsBuilder<P> |
set(String key,
Object value)
Sets the parameter.
|
AttributeSpecBuilder.ParamsBuilder<P> |
setAttribute(AttributeSpec<?> value)
Special method to set the parameter "attribute" to the given attribute spec.
|
AttributeSpecBuilder.ParamsBuilder<P> |
setAttribute(String key,
AttributeSpec<?> value)
Special method to set a parameter to the given attribute spec.
|
String |
toString() |
public P done()
public AttributeSpecBuilder.ParamsBuilder<P> remove(String key)
key
- parameter namepublic AttributeSpecBuilder.ParamsBuilder<AttributeSpecBuilder.ParamsBuilder<P>> object(String key)
key
- parameter namepublic AttributeSpecBuilder.ParamsBuilder<P> set(String key, Object value)
key
- parameter namevalue
- parameter valuepublic AttributeSpecBuilder.ParamsBuilder<P> setAttribute(AttributeSpec<?> value)
value
- attribute specCoreAttributeSpecs.Param#ATTRIBUTE
public AttributeSpecBuilder.ParamsBuilder<P> setAttribute(String key, AttributeSpec<?> value)
key
- attribute namevalue
- attribute specpublic AttributeSpecBuilder.ParamsBuilder<P> copyFrom(@Nullable Map<String,Object> map)
map
- map with parameterspublic AttributeSpec<T> build()
Copyright © 2024 Tempo Software. All Rights Reserved.