mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/SharedMessageUtils.java
public static Dictionary<String, Object> convertMaptoDictionary(final List<SimpleTypesMapEntry> listMap) 
    {
        final Dictionary<String, Object> dictionaryMap = new Hashtable<String, Object>();
        for (SimpleTypesMapEntry entry:listMap)        
        {
            if (dictionaryMap.get(entry.getKey()) != null)
            {
                throw new IllegalArgumentException("duplicate key"); 
                
            }
            dictionaryMap.put(entry.getKey(), convertMultitypeToObject(entry.getValue()));   

        }
        return dictionaryMap;
         
    }
/**
     * Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Dictionary object.
     * @param listMap
     *    list of map entries
     * @return
     *    Dictionary object that has the keys and converted values   
     */
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Dictionary object.
@param listMap
list of map entries
@return
Dictionary object that has the keys and converted values
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Dictionary object . @param listMap list of map entries @return Dictionary object that has the keys and converted values
public static Dictionary<String, Object> convertMaptoDictionary(final List<SimpleTypesMapEntry> listMap) 
    {
        final Dictionary<String, Object> dictionaryMap = new Hashtable<String, Object>();
        for (SimpleTypesMapEntry entry:listMap)        
        {
            if (dictionaryMap.get(entry.getKey()) != null)
            {
                throw new IllegalArgumentException("duplicate key"); 
            }
            dictionaryMap.put(entry.getKey(), convertMultitypeToObject(entry.getValue()));   
        }
        return dictionaryMap;
    }
public static Dictionary < String , Object > convertMaptoDictionary ( final List < SimpleTypesMapEntry > listMap ) { final Dictionary < String , Object > dictionaryMap = new Hashtable < String , Object > ( ) ; for ( SimpleTypesMapEntry entry : listMap ) { if ( dictionaryMap . get ( entry . getKey ( ) ) != null ) { throw new IllegalArgumentException ( "duplicate key" ) ; } dictionaryMap . put ( entry . getKey ( ) , convertMultitypeToObject ( entry . getValue ( ) ) ) ; } return dictionaryMap ; }
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Dictionary object.
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Dictionary object .