Layers: add contains methods

This commit is contained in:
Emux 2023-04-10 11:31:04 +03:00
parent 5613a96cc2
commit a9ef451991
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3

View File

@ -209,6 +209,20 @@ public final class Layers extends AbstractList<Layer> {
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.
*