Class StringMap
java.lang.Object
java.util.AbstractMap<String,String>
java.util.HashMap<String,String>
java.util.LinkedHashMap<String,String>
com.helger.commons.collection.impl.CommonsLinkedHashMap<String,String>
com.helger.commons.collection.attr.AttributeContainer<String,String>
com.helger.commons.collection.attr.StringMap
- All Implemented Interfaces:
IAttributeContainer<String,,String> IStringMap,ICommonsMap<String,,String> ICommonsOrderedMap<String,,String> ICloneable<ICommonsMap<String,,String>> IGetterByKeyTrait<String>,Serializable,Cloneable,Map<String,,String> SequencedMap<String,String>
@NotThreadSafe
public class StringMap
extends AttributeContainer<String,String>
implements IStringMap
Base class for all kind of string-string 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
Modifier and TypeMethodDescriptionfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapaddIfNotNull(String sName, Object aValue) final StringMapaddIfNotNull(String sName, String sValue) final StringMapaddWithoutValue(String sName) getClone()Methods inherited from class com.helger.commons.collection.attr.AttributeContainer
afterSetValueCallbacks, beforeSetValueCallbacks, equals, hashCode, toStringMethods 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
afterSetValueCallbacks, beforeSetValueCallbacks, 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 com.helger.commons.collection.attr.IStringMap
putIn, putIn, putIn, putIn, putIn, putInMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, 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
-
StringMap
public StringMap() -
StringMap
-
StringMap
-
-
Method Details
-
addIfNotNull
-
addIfNotNull
-
addIf
-
add
-
add
-
add
-
add
-
add
-
addWithoutValue
-
getClone
- Specified by:
getClonein interfaceIAttributeContainer<String,String> - Specified by:
getClonein interfaceICloneable<ICommonsMap<String,String>> - Specified by:
getClonein interfaceICommonsOrderedMap<String,String> - Specified by:
getClonein interfaceIStringMap- Overrides:
getClonein classAttributeContainer<String,String> - Returns:
- A 100% deep-copy of the implementing class.
-