Layers: add contains methods
This commit is contained in:
parent
5613a96cc2
commit
a9ef451991
@ -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.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user