@groovy.transform.CompileStatic class ArtifactAttributeContainer
Implementation of AttributeContainer
Type Params | Return Type | Name and description |
---|---|---|
<T> |
AttributeContainer |
attribute(Attribute<T> attribute, T t) Sets an attribute value. |
|
boolean |
contains(Attribute<?> attribute) Tells if a specific attribute is found in this container. |
|
void |
copyTo(ArtifactAttributeContainer other) |
<T> |
T |
getAttribute(Attribute<T> attribute) Returns the value of an attribute found in this container, or null if
this container doesn't have it. |
|
AttributeContainer |
getAttributes() |
|
boolean |
isEmpty() Returns true if this container is empty. |
|
java.util.Set<Attribute<?>> |
keySet() Returns the set of attribute keys of this container. |
Sets an attribute value. It is not allowed to use null
as
an attribute value.
<
- T > the type of the attributekey
- the attribute keyvalue
- the attribute valueTells if a specific attribute is found in this container.
key
- the key of the attribute Returns the value of an attribute found in this container, or null
if
this container doesn't have it.
<
- T > the type of the attributekey
- the attribute keyReturns true if this container is empty.
Returns the set of attribute keys of this container.