Here you can find the source of removePrivateColumns( Map
Parameter | Description |
---|---|
contentValues | a parameter |
private static Map<String, Object> removePrivateColumns( Map<String, Object> contentValues)
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; public class Main { /**/* w w w. ja va 2 s .co m*/ * removes Key * @param contentValues * @return */ private static Map<String, Object> removePrivateColumns( Map<String, Object> contentValues) { 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; } }