Constructor and Description |
---|
MapLayers() |
Modifier and Type | Method and Description |
---|---|
void |
add(MapLayer layer) |
MapLayer |
get(int index) |
MapLayer |
get(String name) |
<T extends MapLayer> |
getByType(Class<T> type) |
<T extends MapLayer> |
getByType(Class<T> type,
Array<T> fill) |
int |
getCount() |
int |
getIndex(MapLayer layer)
Get the index of the layer in the collection, or -1 if no such layer exists.
|
int |
getIndex(String name)
Get the index of the layer having the specified name, or -1 if no such layer exists.
|
Iterator<MapLayer> |
iterator() |
void |
remove(int index) |
void |
remove(MapLayer layer) |
int |
size() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MapLayer get(int index)
index
- public MapLayer get(String name)
name
- public int getIndex(String name)
public int getIndex(MapLayer layer)
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 int size()
public <T extends MapLayer> Array<T> getByType(Class<T> type)
type
- public <T extends MapLayer> Array<T> getByType(Class<T> type, Array<T> fill)
type
- fill
- array to be filled with the matching layersCopyright © 2018. All rights reserved.