@Test public void removeLayerNotInListReturnsFalse() throws Exception { assertFalse(mapContent.layers().remove(new MockLayer(WORLD))); }
public List<Layer> layers() { monitor.readLock().lock(); try { return layerList; } finally { monitor.readLock().unlock(); } }
MapContent { public List<Layer> layers() { monitor.readLock().lock(); try { return layerList; } finally { monitor.readLock().unlock(); } } }
MapContent { public List<Layer> layers() { monitor.readLock().lock(); try { return layerList; } finally { monitor.readLock().unlock(); } } MapContent(); }
MapContent { public List<Layer> layers() { monitor.readLock().lock(); try { return layerList; } finally { monitor.readLock().unlock(); } } MapContent(); void dispose(); void addMapLayerListListener(MapLayerListListener listener); void removeMapLayerListListener(MapLayerListListener listener); boolean addLayer(Layer layer); int addLayers(Collection<? extends Layer> layers); boolean removeLayer(Layer layer); void moveLayer(int sourcePosition, int destPosition); List<Layer> layers(); ReferencedEnvelope getMaxBounds(); MapViewport getViewport(); void setViewport(MapViewport viewport); void addMapBoundsListener(MapBoundsListener listener); void removeMapBoundsListener(MapBoundsListener listener); CoordinateReferenceSystem getCoordinateReferenceSystem(); void addPropertyChangeListener(java.beans.PropertyChangeListener listener); void removePropertyChangeListener(java.beans.PropertyChangeListener listener); java.util.Map<String, Object> getUserData(); String getTitle(); void setTitle(String title); }
MapContent { public List<Layer> layers() { monitor.readLock().lock(); try { return layerList; } finally { monitor.readLock().unlock(); } } MapContent(); void dispose(); void addMapLayerListListener(MapLayerListListener listener); void removeMapLayerListListener(MapLayerListListener listener); boolean addLayer(Layer layer); int addLayers(Collection<? extends Layer> layers); boolean removeLayer(Layer layer); void moveLayer(int sourcePosition, int destPosition); List<Layer> layers(); ReferencedEnvelope getMaxBounds(); MapViewport getViewport(); void setViewport(MapViewport viewport); void addMapBoundsListener(MapBoundsListener listener); void removeMapBoundsListener(MapBoundsListener listener); CoordinateReferenceSystem getCoordinateReferenceSystem(); void addPropertyChangeListener(java.beans.PropertyChangeListener listener); void removePropertyChangeListener(java.beans.PropertyChangeListener listener); java.util.Map<String, Object> getUserData(); String getTitle(); void setTitle(String title);  }