mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
private void removeModel(final List<UUID> newUuids, final List<UUID> currentUuids, 
            final List<? extends FactoryBaseModel> layersList)
    {

        if (newUuids.isEmpty()) //updated list says there are no layers of this type 
        {
            layersList.clear(); //clear list of layers
        }
        else
        {
            //get the UUIDs that are no longer in the updated list of layers
            currentUuids.removeAll(newUuids);
            for (UUID uuid : currentUuids)
            {
                //remove obsolete layers from the given list
                layersList.remove(findLayer(uuid, layersList));
            }
        }
    }
/**
     * Helper method for removing a model based on a list of new layer UUIDs and the list of current UUIDs.
     * @param newUuids
     *      List of UUIDs corresponding to the new layers received
     * @param currentUuids
     *      List of UUIDs corresponding the current layers in a map
     * @param layersList
     *      list of layers potentially containing obsolete layers
     */
Helper method for removing a model based on a list of new layer UUIDs and the list of current UUIDs.
@param newUuids
List of UUIDs corresponding to the new layers received
@param currentUuids
List of UUIDs corresponding the current layers in a map
@param layersList
list of layers potentially containing obsolete layers
Helper method for removing a model based on a list of new layer UUIDs and the list of current UUIDs . @param newUuids List of UUIDs corresponding to the new layers received @param currentUuids List of UUIDs corresponding the current layers in a map @param layersList list of layers potentially containing obsolete layers
private void removeModel(final List<UUID> newUuids, final List<UUID> currentUuids, 
            final List<? extends FactoryBaseModel> layersList)
    {
        if (newUuids.isEmpty()) 
        {
            layersList.clear(); 
        }
        else
        {
            currentUuids.removeAll(newUuids);
            for (UUID uuid : currentUuids)
            {
                layersList.remove(findLayer(uuid, layersList));
            }
        }
    }
private void removeModel ( final List < UUID > newUuids , final List < UUID > currentUuids , final List < ? extends FactoryBaseModel > layersList ) { if ( newUuids . isEmpty ( ) ) { layersList . clear ( ) ; } else { currentUuids . removeAll ( newUuids ) ; for ( UUID uuid : currentUuids ) { layersList . remove ( findLayer ( uuid , layersList ) ) ; } } }
Helper method for removing a model based on a list of new layer UUIDs and the list of current UUIDs.
Helper method for removing a model based on a list of new layer UUIDs and the list of current UUIDs .
//updated list says there are no layers of this type  //clear list of layers //get the UUIDs that are no longer in the updated list of layers //remove obsolete layers from the given list