KEYTYPE - Key typepublic interface IMutableAttributeContainerAny<KEYTYPE> extends IMutableAttributeContainer<KEYTYPE,Object>
<String,
Object>. null values are not allowed in this attribute
containers.| Modifier and Type | Method and Description |
|---|---|
default boolean |
getAndSetAttributeFlag(KEYTYPE aName)
Atomic operation to set a flag to
true if it was previously
set to false (meaning not existing). |
default EChange |
setAttribute(KEYTYPE aName,
boolean bValue)
Set/overwrite an in attribute value.
|
default EChange |
setAttribute(KEYTYPE aName,
double dValue)
Set/overwrite an in attribute value.
|
default EChange |
setAttribute(KEYTYPE aName,
int nValue)
Set/overwrite an in attribute value.
|
default EChange |
setAttribute(KEYTYPE aName,
long nValue)
Set/overwrite an in attribute value.
|
computeIfAbsent, removeAttribute, setAttribute, setAttributes, setAttributescontainsAttribute, forAllAttributes, forAllAttributeValues, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeObject, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttribute, isEmpty, isNotEmpty, iteratorcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstMapped, findFirstMapped, forEach, forEach, forEachBreakable, getIteratorCount, getIteratorCountforEach, spliteratorclear@Nonnull default EChange setAttribute(@Nonnull KEYTYPE 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.IMutableAttributeContainer.removeAttribute(Object)@Nonnull default EChange setAttribute(@Nonnull KEYTYPE 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.IMutableAttributeContainer.removeAttribute(Object)@Nonnull default EChange setAttribute(@Nonnull KEYTYPE 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.IMutableAttributeContainer.removeAttribute(Object)@Nonnull default EChange setAttribute(@Nonnull KEYTYPE 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.IMutableAttributeContainer.removeAttribute(Object)default boolean getAndSetAttributeFlag(@Nonnull KEYTYPE aName)
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.
IAttributeContainer.containsAttribute(Object) can be used to
check if the attribute is already present.aName - 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–2017 Philip Helger. All rights reserved.