Layers: add contains methods (#1032)
This commit is contained in:
@@ -209,6 +209,20 @@ public final class Layers extends AbstractList<Layer> {
|
|||||||
mGroupIndex.put(group, mLayerList.size());
|
mGroupIndex.put(group, mLayerList.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see List#contains(Object)
|
||||||
|
*/
|
||||||
|
public synchronized boolean contains(Layer layer) {
|
||||||
|
return mLayerList.contains(layer);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see List#contains(Object)
|
||||||
|
*/
|
||||||
|
public synchronized boolean containsGroup(int group) {
|
||||||
|
return mGroupList.contains(group);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should only be used by MapRenderer.
|
* Should only be used by MapRenderer.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user