@NotThreadSafe public class SMap extends CommonsLinkedHashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SMap()
Create an empty map.
|
SMap(Map<String,String> rhs)
Create a map base on the given map.
|
SMap(String sName,
int nValue) |
SMap(String sName,
String sValue) |
| Modifier and Type | Method and Description |
|---|---|
SMap |
add(String sName,
boolean bValue) |
SMap |
add(String sName,
int nValue) |
SMap |
add(String sName,
long nValue) |
SMap |
add(String sName,
Object aValue) |
SMap |
add(String sName,
String sValue) |
SMap |
addIf(String sName,
String sValue,
Predicate<String> aFilter) |
SMap |
addIfNotNull(String sName,
Object aValue) |
SMap |
addIfNotNull(String sName,
String sValue) |
SMap |
addWithoutValue(String sName) |
SMap |
getClone() |
String |
put(String sName,
String sValue)
Deprecated.
|
void |
putAll(Map<? extends String,? extends String> aMap)
Deprecated.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcopyOfEntrySet, copyOfKeySet, getLastKey, getLastValueaddAll, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, findFirstEntry, findFirstKey, findFirstValue, getAsUnmodifiable, getFirstEntry, getFirstKey, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, putIf, putIfNotNull, removeAll, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic SMap()
public SMap(@Nullable Map<String,String> rhs)
rhs - The map to add. May not be null.@Deprecated @DevelopersNote(value="Use add instead - only for API compliance!") public String put(@Nonnull String sName, @Nonnull String sValue)
@Deprecated @DevelopersNote(value="Use add instead - only for API compliance!") public void putAll(Map<? extends String,? extends String> aMap)
@Nonnull public SMap addIf(@Nonnull String sName, @Nullable String sValue, @Nonnull Predicate<String> aFilter)
@Nonnull public SMap getClone()
getClone in interface ICommonsOrderedMap<String,String>getClone in interface ICloneable<ICommonsMap<String,String>>getClone in class CommonsLinkedHashMap<String,String>Copyright © 2014–2016 Philip Helger. All rights reserved.