public interface IAttributeContainer extends IReadonlyAttributeContainer, IGenericAttributeContainer<String,Object>
IReadonlyAttributeContainer.
null values are not allowed in this attribute containers.| Modifier and Type | Method and Description |
|---|---|
boolean |
getAndSetAttributeFlag(String sName)
Atomic operation to set a flag to
true if it was previously
set to false (meaning not existing). |
EChange |
setAttribute(String aName,
boolean bValue)
Set/overwrite an in attribute value.
|
EChange |
setAttribute(String aName,
double dValue)
Set/overwrite an in attribute value.
|
EChange |
setAttribute(String aName,
int nValue)
Set/overwrite an in attribute value.
|
EChange |
setAttribute(String aName,
long nValue)
Set/overwrite an in attribute value.
|
removeAttribute, setAttribute, setAttributes, setAttributescontainsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeNames, getAttributeObject, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttributeclear@Nonnull EChange setAttribute(@Nonnull String aName, boolean bValue)
setAttribute (aName, Boolean.valueOf (bValue));aName - The name of the attribute. May not be null.bValue - The value of the attribute.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.IGenericAttributeContainer.removeAttribute(Object)@Nonnull EChange setAttribute(@Nonnull String aName, int nValue)
setAttribute (aName, Integer.valueOf (nValue));aName - The name of the attribute. May not be null.nValue - The value of the attribute.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.IGenericAttributeContainer.removeAttribute(Object)@Nonnull EChange setAttribute(@Nonnull String aName, long nValue)
setAttribute (aName, Long.valueOf (nValue));aName - The name of the attribute. May not be null.nValue - The value of the attribute.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.IGenericAttributeContainer.removeAttribute(Object)@Nonnull EChange setAttribute(@Nonnull String aName, double dValue)
setAttribute (aName, Double.valueOf (nValue));aName - The name of the attribute. May not be null.dValue - The value of the attribute.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.IGenericAttributeContainer.removeAttribute(Object)boolean getAndSetAttributeFlag(@Nonnull String sName)
true if it was previously
set to false (meaning not existing). There is no possibility
to define a value for this flag. The value used is Boolean.TRUE.
IGenericReadonlyAttributeContainer.containsAttribute(Object) can be used to
check if the attribute is already present.sName - The name of the flag to set.false is returned, whereas if the flag was
already present, true is returned. Any other than the
first call for the same flag is always returning true.Copyright © 2014–2015 Philip Helger. All rights reserved.