Class StringMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<KEYTYPE,VALUETYPE>
-
- com.helger.commons.collection.impl.CommonsLinkedHashMap<KEYTYPE,VALUETYPE>
-
- 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>
@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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface com.helger.commons.collection.attr.IAttributeContainer
IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>, IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMapadd(String sName, boolean bValue)StringMapadd(String sName, int nValue)StringMapadd(String sName, long nValue)StringMapadd(String sName, Object aValue)StringMapadd(String sName, String sValue)StringMapaddIf(String sName, String sValue, Predicate<? super String> aFilter)StringMapaddIfNotNull(String sName, Object aValue)StringMapaddIfNotNull(String sName, String sValue)StringMapaddWithoutValue(String sName)StringMapgetClone()-
Methods inherited from class com.helger.commons.collection.attr.AttributeContainer
afterSetValueCallbacks, beforeSetValueCallbacks, equals, hashCode, toString
-
Methods inherited from class com.helger.commons.collection.impl.CommonsLinkedHashMap
createInstance
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.collection.attr.IAttributeContainer
afterSetValueCallbacks, beforeSetValueCallbacks, getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsLong, getValue, putAllIn, putIn
-
Methods 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, setAll
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsOrderedMap
copyOfEntrySet, copyOfKeySet, copyOfKeySet, getLastKey, getLastKey, getLastValue, getLastValue
-
Methods 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, onSafeCastError
-
Methods inherited from interface com.helger.commons.collection.attr.IStringMap
putIn, putIn, putIn, putIn, putIn, putIn
-
Methods 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, values
-
-
-
-
Method Detail
-
addIfNotNull
@Nonnull public final StringMap addIfNotNull(@Nonnull String sName, @Nonnull Object aValue)
-
addIfNotNull
@Nonnull public final StringMap addIfNotNull(@Nonnull String sName, @Nullable String sValue)
-
addIf
@Nonnull public final StringMap addIf(@Nonnull String sName, @Nullable String sValue, @Nonnull Predicate<? super String> aFilter)
-
getClone
@Nonnull @ReturnsMutableCopy public StringMap 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.
-
-