KEYTYPE
- Key typepublic interface IAttributeContainerAny<KEYTYPE> extends IAttributeContainer<KEYTYPE,Object>
<String,
Object>
. null
values are not allowed in this attribute
containers.IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>, IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE>
Modifier and Type | Method and Description |
---|---|
default boolean |
getAndSetFlag(KEYTYPE aName)
Atomic operation to set a flag to
true if it was previously
set to false (meaning not existing). |
IAttributeContainerAny<KEYTYPE> |
getClone() |
default EChange |
putIn(KEYTYPE aName,
boolean bValue)
Set/overwrite an attribute value.
|
default EChange |
putIn(KEYTYPE aName,
double dValue)
Set/overwrite an attribute value.
|
default EChange |
putIn(KEYTYPE aName,
float fValue)
Set/overwrite an attribute value.
|
default EChange |
putIn(KEYTYPE aName,
int nValue)
Set/overwrite an attribute value.
|
default EChange |
putIn(KEYTYPE aName,
long nValue)
Set/overwrite an attribute value.
|
default EChange |
putIn(KEYTYPE aName,
short nValue)
Set/overwrite an attribute value.
|
afterSetValueCallbacks, beforeSetValueCallbacks, getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsLong, getValue, putAllIn, putIn
addAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfEntrySet, copyOfKeySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, createInstance, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAsUnmodifiable, getFirstEntry, getFirstEntry, getFirstKey, getFirstKey, getFirstValue, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, put, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, removeIf, removeIfKey, removeIfValue, removeObject, setAll
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
containsNonNullValue, containsNullValue, getAsBigDecimal, getAsBigDecimal, getAsBigInteger, getAsBigInteger, getAsBoolean, getAsBooleanObj, getAsByte, getAsByte, getAsByteArray, getAsByteObj, getAsChar, getAsChar, getAsCharArray, getAsCharArray, getAsCharObj, getAsDouble, getAsDoubleObj, getAsFloat, getAsFloatObj, getAsInt, getAsIntObj, getAsLocalDate, getAsLocalDate, getAsLocalDate, getAsLocalDateTime, getAsLocalDateTime, getAsLocalDateTime, getAsLocalTime, getAsLocalTime, getAsLocalTime, getAsLong, getAsLongObj, getAsShort, getAsShort, getAsShortObj, getAsSqlBlob, getAsSqlClob, getAsSqlDate, getAsSqlNClob, getAsSqlRowId, getAsSqlTime, getAsSqlTimestamp, getAsString, getAsString, getAsStringList, getAsStringList, getAsStringSet, getAsStringSet, getCastedValue, getCastedValue, getCastedValue, getCastedValue, getConvertedValue, getConvertedValue, getSafeCastedValue, getSafeCastedValue, getValueClass, hasStringValue, hasStringValue, onSafeCastError
@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, boolean bValue)
putIn (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.@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, int nValue)
putIn (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.@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, long nValue)
putIn (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.@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, short nValue)
putIn (aName, Short.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.@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, float fValue)
putIn (aName, Float.valueOf (fValue));
aName
- The name of the attribute. May not be null
.fValue
- The value of the attribute.EChange.CHANGED
if something changed,
EChange.UNCHANGED
otherwise.@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, double dValue)
putIn (aName, Double.valueOf (dValue));
aName
- The name of the attribute. May not be null
.dValue
- The value of the attribute.EChange.CHANGED
if something changed,
EChange.UNCHANGED
otherwise.default boolean getAndSetFlag(@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
.
Map.containsKey(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
.@Nonnull @ReturnsMutableCopy IAttributeContainerAny<KEYTYPE> getClone()
getClone
in interface IAttributeContainer<KEYTYPE,Object>
getClone
in interface ICloneable<ICommonsMap<KEYTYPE,Object>>
Copyright © 2014–2019 Philip Helger. All rights reserved.