List of utility methods to do Map Remove
void | removeNullPair(Map map) remove Null Pair List<Object> nullPairKeyList = new ArrayList<>(); for (Object key : map.keySet()) { if ("".equals(key) || map.get(key) == null) { nullPairKeyList.add(key); for (Object nullPairKey : nullPairKeyList) { map.remove(nullPairKey); ... |
Map | removeNullValues(final Map Removes Entries with null as value and returns a new Map Map<String, String> cleanedParameters = new HashMap<>(parameters.size(), 1); for (Map.Entry<String, String> entry : parameters.entrySet()) { if (entry.getValue() != null) { cleanedParameters.put(entry.getKey(), entry.getValue()); return cleanedParameters; |
void | removeNullValues(Map Removes null values from the given map if (map == null) return; map.values().removeAll(Collections.singleton(null)); |
Map | removeObject(Map remove Object if (map == null) { map = new HashMap<T, U>(); map.remove(key); return map; |
Object | removeObjectProperty(Map properties, String key, Object defaultValue) Returns an Object property from a Map and removes it. Object value = defaultValue; if (properties != null && properties.containsKey(key)) { value = properties.remove(key); return value; |
void | removeOutStringsStrings(Map Remove um string da tabela de espalhamento caso seja igual ao parametro 'newString' for (Iterator<Entry<String, String>> iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry<String, String> entry = (Map.Entry<String, String>) iterator.next(); String key = entry.getKey(); if (key.equals(newString)) { iterator.remove(); |
Map | removeParamsForAlipaySign(Map remove Params For Alipay Sign map.remove("sign"); map.remove("sign_type"); return map; |
Map | removeParentBeans(Map remove Parent Beans for (String key : parentBeans.keySet()) { beans.remove(key); return beans; |
Map | removePrivateColumns(Map removes Key HashMap<String, Object> result = new HashMap<String, Object>(); Object[] keySet = (contentValues.keySet().toArray()); for (int i = 0; i < keySet.length; i++) { String name = (String) keySet[i]; Object value = contentValues.get(name); if (!"Key".equals(name)) { result.put(name, value); return result; |
void | removeRownum(List remove Rownum for (Map<String, Object> row : rows) { row.remove("ROWNUM_"); |