public String rowPut(String key, String value) { String resolvedKey = resolveRowKey(key); if (value == null) { throw new NullPointerException("The row expression value must not be null."); } rowMapCache.clear(); return (String) rowMap.put( resolvedKey, value.toLowerCase(Locale.ENGLISH)); }
/** * Removes the row value mapping for this key from this map if it is * present.<p> * * Returns the value to which the map previously associated the key, * or {@code null} if the map contained no mapping for this key. * The map will not contain a String mapping for the specified key * once the call returns. * * @param key key whose mapping is to be removed from the map. * @return previous value associated with specified key, or {@code null} * if there was no mapping for key. * * @throws NullPointerException if {@code key} is {@code null}. * * @see Map#remove(Object) */ public String rowRemove(String key) { String resolvedKey = resolveRowKey(key); rowMapCache.clear(); return rowMap.remove(resolvedKey); }
public String rowPut(String key, String value) { checkNotNull(value, "The row expression value must not be null."); String resolvedKey = resolveRowKey(key); rowMapCache.clear(); return rowMap.put( resolvedKey, value.toLowerCase(Locale.ENGLISH)); }
/** * Removes the row value mapping for this key from this map if it is * present.<p> * * Returns the value to which the map previously associated the key, * or {@code null} if the map contained no mapping for this key. * The map will not contain a String mapping for the specified key * once the call returns. * * @param key key whose mapping is to be removed from the map. * @return previous value associated with specified key, or {@code null} * if there was no mapping for key. * * @throws NullPointerException if {@code key} is {@code null}. * * @see Map#remove(Object) */ public String rowRemove(String key) { String resolvedKey = resolveRowKey(key); rowMapCache.clear(); return (String) rowMap.remove(resolvedKey); }
/** * Returns {@code true} if this map or a parent map - if any - contains * a RowSpec mapping for the specified key. * * @param key key whose presence in this LayoutMap chain is to be tested. * @return {@code true} if this map contains a row mapping * for the specified key. * * @throws NullPointerException if the key is {@code null}. * * @see Map#containsKey(Object) */ public boolean rowContainsKey(String key) { String resolvedKey = resolveRowKey(key); return (rowMap.containsKey(resolvedKey)) || ((parent != null) && (parent.rowContainsKey(resolvedKey))); }
/** * Returns {@code true} if this map or a parent map - if any - contains * a RowSpec mapping for the specified key. * * @param key key whose presence in this LayoutMap chain is to be tested. * @return {@code true} if this map contains a row mapping * for the specified key. * * @throws NullPointerException if the key is {@code null}. * * @see Map#containsKey(Object) */ public boolean rowContainsKey(String key) { String resolvedKey = resolveRowKey(key); return rowMap.containsKey(resolvedKey) || parent != null && parent.rowContainsKey(resolvedKey); }
String resolvedKey = resolveRowKey(key); String cachedValue = (String) rowMapCache.get(resolvedKey); if (cachedValue != null) {
String resolvedKey = resolveRowKey(key); String cachedValue = rowMapCache.get(resolvedKey); if (cachedValue != null) {