Class AttributeContainer<KEYTYPE,VALUETYPE>
java.lang.Object
java.util.AbstractMap<KEYTYPE,VALUETYPE>
java.util.HashMap<KEYTYPE,VALUETYPE>
java.util.LinkedHashMap<KEYTYPE,VALUETYPE>
com.helger.commons.collection.impl.CommonsLinkedHashMap<KEYTYPE,VALUETYPE>
com.helger.commons.collection.attr.AttributeContainer<KEYTYPE,VALUETYPE>
- Type Parameters:
KEYTYPE- Key typeVALUETYPE- Value type
- All Implemented Interfaces:
IAttributeContainer<KEYTYPE,,VALUETYPE> ICommonsMap<KEYTYPE,,VALUETYPE> ICommonsOrderedMap<KEYTYPE,,VALUETYPE> ICloneable<ICommonsMap<KEYTYPE,,VALUETYPE>> IGetterByKeyTrait<KEYTYPE>,Serializable,Cloneable,Map<KEYTYPE,,VALUETYPE> SequencedMap<KEYTYPE,VALUETYPE>
- Direct Known Subclasses:
AttributeContainerAny,StringMap
@NotThreadSafe
public class AttributeContainer<KEYTYPE,VALUETYPE>
extends CommonsLinkedHashMap<KEYTYPE,VALUETYPE>
implements IAttributeContainer<KEYTYPE,VALUETYPE>
Base class for all kind of any-any mapping container. This implementation is
not thread-safe!
- Author:
- Philip Helger
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface com.helger.commons.collection.attr.IAttributeContainer
IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>, IAttributeContainer.IBeforeSetValueCallback<KEYTYPE, VALUETYPE> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.helger.commons.collection.impl.CommonsLinkedHashMap
createInstanceMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.collection.attr.IAttributeContainer
getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsLong, getValue, putAllIn, putInMethods inherited from interface com.helger.commons.collection.impl.ICommonsMap
addAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, 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, setAllMethods inherited from interface com.helger.commons.collection.impl.ICommonsOrderedMap
copyOfEntrySet, copyOfKeySet, copyOfKeySet, getLastKey, getLastKey, getLastValue, getLastValueMethods inherited from interface com.helger.commons.traits.IGetterByKeyTrait
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, onSafeCastErrorMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
AttributeContainer
public AttributeContainer() -
AttributeContainer
-
-
Method Details
-
beforeSetValueCallbacks
@Nonnull @ReturnsMutableObject public final CallbackList<IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE>> beforeSetValueCallbacks()- Specified by:
beforeSetValueCallbacksin interfaceIAttributeContainer<KEYTYPE,VALUETYPE> - Returns:
- Callbacks to be invoked before values are set. May not be
null.
-
afterSetValueCallbacks
@Nonnull @ReturnsMutableObject public final CallbackList<IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>> afterSetValueCallbacks()- Specified by:
afterSetValueCallbacksin interfaceIAttributeContainer<KEYTYPE,VALUETYPE> - Returns:
- Callbacks to be invoked after values are set. May not be
null.
-
getClone
- Specified by:
getClonein interfaceIAttributeContainer<KEYTYPE,VALUETYPE> - Specified by:
getClonein interfaceICloneable<KEYTYPE>- Specified by:
getClonein interfaceICommonsOrderedMap<KEYTYPE,VALUETYPE> - Overrides:
getClonein classCommonsLinkedHashMap<KEYTYPE,VALUETYPE> - Returns:
- A 100% deep-copy of the implementing class.
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAbstractMap<KEYTYPE,VALUETYPE>
-