/** * Convert the List of MAnnotationDetail to a Map. * @param details * @return Map with key value pairs of annptation Detail */ public static Map convertDetailsToMap(List details) { if (details == null) return null; Map returnMap = new HashMap(); for(int j=0; j<details.size(); j++) { MAnnotationDetail detail = (MAnnotationDetail)details.get(j); returnMap.put(detail.getKey().toLowerCase(), detail.getValue()); } return returnMap; }
/** * Convert the List of MAnnotationDetail to a Map. * @param details * @return Map with key value pairs of annptation Detail */ public static Map convertDetailsToMap(List details) { if (details == null) return null; Map returnMap = new HashMap(); for(int j=0; j<details.size(); j++) { MAnnotationDetail detail = (MAnnotationDetail)details.get(j); returnMap.put(detail.getKey().toLowerCase(), detail.getValue()); } return returnMap; }