mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
private FactoryBaseModel findLayer(final java.util.UUID uuid, final List<? extends FactoryBaseModel> layerList)
    {        
        if (layerList != null)
        {
            synchronized (layerList)
            {
                for (FactoryBaseModel layer:layerList)
                {
                    if (layer.getUuid().equals(uuid))
                    {
                        return layer;
                    }
                }
            }
        }
        return null;
    }
/**
     * Helper method for finding a comms layer in a given list of layers. Method returns 
     * <code>null</code> if layer does not exist.  
     * @param uuid
     *      UUID of the layer to be found
     * @param layerList
     *      list of layers to iterate through
     * @return
     *      the comms layer corresponding to the given UUID.  If comms layer does not exist,
     *      method will return <code>null</code>. 
     */
Helper method for finding a comms layer in a given list of layers. Method returns
null if layer does not exist.
@param uuid
UUID of the layer to be found
@param layerList
list of layers to iterate through
@return
the comms layer corresponding to the given UUID.  If comms layer does not exist,
method will return null.
Helper method for finding a comms layer in a given list of layers . Method returns null if layer does not exist . @param uuid UUID of the layer to be found @param layerList list of layers to iterate through @return the comms layer corresponding to the given UUID . If comms layer does not exist method will return null .
private FactoryBaseModel findLayer(final java.util.UUID uuid, final List<? extends FactoryBaseModel> layerList)
    {        
        if (layerList != null)
        {
            synchronized (layerList)
            {
                for (FactoryBaseModel layer:layerList)
                {
                    if (layer.getUuid().equals(uuid))
                    {
                        return layer;
                    }
                }
            }
        }
        return null;
    }
private FactoryBaseModel findLayer ( final java . util . UUID uuid , final List < ? extends FactoryBaseModel > layerList ) { if ( layerList != null ) { synchronized ( layerList ) { for ( FactoryBaseModel layer : layerList ) { if ( layer . getUuid ( ) . equals ( uuid ) ) { return layer ; } } } } return null ; }
Helper method for finding a comms layer in a given list of layers.
Helper method for finding a comms layer in a given list of layers .