MCPcopy
hub / github.com/libgdx/libgdx / getIndex

Method getIndex

gdx/src/com/badlogic/gdx/maps/MapLayers.java:47–49  ·  view source on GitHub ↗

Get the index of the layer having the specified name, or -1 if no such layer exists.

(String name)

Source from the content-addressed store, hash-verified

45
46 /** Get the index of the layer having the specified name, or -1 if no such layer exists. */
47 public int getIndex (String name) {
48 return getIndex(get(name));
49 }
50
51 /** Get the index of the layer in the collection, or -1 if no such layer exists. */
52 public int getIndex (MapLayer layer) {

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
indexOfMethod · 0.45

Tested by

no test coverage detected