| Constructor and Description |
|---|
MapLayers() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MapLayer layer) |
MapLayer |
get(int index) |
MapLayer |
get(java.lang.String name) |
<T extends MapLayer> |
getByType(java.lang.Class<T> type) |
<T extends MapLayer> |
getByType(java.lang.Class<T> type,
Array<T> fill) |
int |
getCount() |
java.util.Iterator<MapLayer> |
iterator() |
void |
remove(int index) |
void |
remove(MapLayer layer) |
public MapLayer get(int index)
index - public MapLayer get(java.lang.String name)
name - public int getCount()
public void add(MapLayer layer)
layer - layer to be added to the setpublic void remove(int index)
index - removes layer at indexpublic void remove(MapLayer layer)
layer - layer to be removedpublic <T extends MapLayer> Array<T> getByType(java.lang.Class<T> type)
type - public <T extends MapLayer> Array<T> getByType(java.lang.Class<T> type, Array<T> fill)
type - fill - array to be filled with the matching layers