mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetGetCommandModel.java
public final void updateSupportedCommands(final List<CommandTypeEnum> commands)
    {
        for (CommandTypeEnum commandType : commands)
        {
            if (!m_CommandMap.containsKey(commandType))
            {
                m_CommandMap.put(commandType, new AssetGetCommandResponse(null, null));
            }
        }
        
        final Iterator<Entry<CommandTypeEnum, AssetGetCommandResponse>> commandsIterator = 
                m_CommandMap.entrySet().iterator();
        while (commandsIterator.hasNext())
        {
            final Entry<CommandTypeEnum, AssetGetCommandResponse> commandEntry = commandsIterator.next();
            if (!commands.contains(commandEntry.getKey()))
            {
                commandsIterator.remove();
            }
        }
    }
/**
     * Updates the list of supported get commands for the model.
     * 
     * @param commands
     *      Updated list of get commands the model supports.
     */
Updates the list of supported get commands for the model.

@param commands
Updated list of get commands the model supports.
Updates the list of supported get commands for the model . @param commands Updated list of get commands the model supports .
public final void updateSupportedCommands(final List<CommandTypeEnum> commands)
    {
        for (CommandTypeEnum commandType : commands)
        {
            if (!m_CommandMap.containsKey(commandType))
            {
                m_CommandMap.put(commandType, new AssetGetCommandResponse(null, null));
            }
        }
        final Iterator<Entry<CommandTypeEnum, AssetGetCommandResponse>> commandsIterator = 
                m_CommandMap.entrySet().iterator();
        while (commandsIterator.hasNext())
        {
            final Entry<CommandTypeEnum, AssetGetCommandResponse> commandEntry = commandsIterator.next();
            if (!commands.contains(commandEntry.getKey()))
            {
                commandsIterator.remove();
            }
        }
    }
public final void updateSupportedCommands ( final List < CommandTypeEnum > commands ) { for ( CommandTypeEnum commandType : commands ) { if ( ! m_CommandMap . containsKey ( commandType ) ) { m_CommandMap . put ( commandType , new AssetGetCommandResponse ( null , null ) ) ; } } final Iterator < Entry < CommandTypeEnum , AssetGetCommandResponse > > commandsIterator = m_CommandMap . entrySet ( ) . iterator ( ) ; while ( commandsIterator . hasNext ( ) ) { final Entry < CommandTypeEnum , AssetGetCommandResponse > commandEntry = commandsIterator . next ( ) ; if ( ! commands . contains ( commandEntry . getKey ( ) ) ) { commandsIterator . remove ( ) ; } } }
Updates the list of supported get commands for the model.
Updates the list of supported get commands for the model .