KEYTYPE - Key typeVALUETYPE - Value typepublic interface IAttributeContainer<KEYTYPE,VALUETYPE> extends ICommonsMap<KEYTYPE,VALUETYPE>, IGetterByKeyTrait<KEYTYPE>
Iterable<Map.Entry<...>>
because this would make the object ambiguous to e.g.
HashCodeGenerator| Modifier and Type | Interface and Description |
|---|---|
static interface |
IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE> |
static interface |
IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE> |
| Modifier and Type | Method and Description |
|---|---|
CallbackList<IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>> |
afterSetValueCallbacks() |
CallbackList<IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE>> |
beforeSetValueCallbacks() |
default boolean |
getAsBoolean(KEYTYPE aName)
Get the attribute value associated to the given attribute name.
|
default double |
getAsDouble(KEYTYPE aName)
Get the attribute value associated to the given attribute name.
|
default float |
getAsFloat(KEYTYPE aName)
Get the attribute value associated to the given attribute name.
|
default int |
getAsInt(KEYTYPE aName)
Get the attribute value associated to the given attribute name.
|
default long |
getAsLong(KEYTYPE aName)
Get the attribute value associated to the given attribute name.
|
IAttributeContainer<KEYTYPE,VALUETYPE> |
getClone() |
default VALUETYPE |
getValue(KEYTYPE aName)
Get the attribute value associated to the given attribute name.
|
default EChange |
putAllIn(Map<? extends KEYTYPE,? extends VALUETYPE> aAttrs) |
default EChange |
putIn(KEYTYPE aName,
VALUETYPE aNewValue)
Set/overwrite an attribute value including before and after callbacks.
|
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, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuescontainsNonNullValue, 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@Nullable default VALUETYPE getValue(@Nullable KEYTYPE aName)
getValue in interface IGetterByKeyTrait<KEYTYPE>aName - the attribute namenull if no such value existsdefault int getAsInt(@Nullable KEYTYPE aName)
getAsInt in interface IGetterByKeyTrait<KEYTYPE>aName - the attribute nameCGlobal.ILLEGAL_UINT if no such
attribute existsdefault long getAsLong(@Nullable KEYTYPE aName)
getAsLong in interface IGetterByKeyTrait<KEYTYPE>aName - the attribute nameCGlobal.ILLEGAL_ULONG if no such
attribute existsdefault float getAsFloat(@Nullable KEYTYPE aName)
getAsFloat in interface IGetterByKeyTrait<KEYTYPE>aName - the attribute nameCGlobal.ILLEGAL_UINT if no such
attribute existsdefault double getAsDouble(@Nullable KEYTYPE aName)
getAsDouble in interface IGetterByKeyTrait<KEYTYPE>aName - the attribute nameCGlobal.ILLEGAL_UINT if no such
attribute existsdefault boolean getAsBoolean(@Nullable KEYTYPE aName)
getAsBoolean in interface IGetterByKeyTrait<KEYTYPE>aName - the attribute namefalse if no such attribute
exists@Nonnull @ReturnsMutableObject CallbackList<IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE>> beforeSetValueCallbacks()
null.@Nonnull @ReturnsMutableObject CallbackList<IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>> afterSetValueCallbacks()
null.@Nonnull default EChange putIn(@Nonnull KEYTYPE aName, @Nullable VALUETYPE aNewValue)
aName - The name of the attribute. May not be null.aNewValue - The new value of the attribute. May be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.beforeSetValueCallbacks(),
afterSetValueCallbacks(),
ICommonsMap.removeObject(Object)@Nonnull default EChange putAllIn(@Nullable Map<? extends KEYTYPE,? extends VALUETYPE> aAttrs)
@Nonnull @ReturnsMutableCopy IAttributeContainer<KEYTYPE,VALUETYPE> getClone()
getClone in interface ICloneable<ICommonsMap<KEYTYPE,VALUETYPE>>Copyright © 2014–2020 Philip Helger. All rights reserved.