MCPcopy
hub / github.com/libgdx/libgdx / getByType

Method getByType

gdx/src/com/badlogic/gdx/maps/MapObjects.java:84–86  ·  view source on GitHub ↗

@param type class of the objects we want to retrieve @return array filled with all the objects in the collection matching type

(Class<T> type)

Source from the content-addressed store, hash-verified

82 /** @param type class of the objects we want to retrieve
83 * @return array filled with all the objects in the collection matching type */
84 public <T extends MapObject> Array<T> getByType (Class<T> type) {
85 return getByType(type, new Array<T>());
86 }
87
88 /** @param type class of the objects we want to retrieve
89 * @param fill collection to put the returned objects in

Callers 2

createMethod · 0.95
createMethod · 0.95

Calls 4

isInstanceMethod · 0.95
clearMethod · 0.65
getMethod · 0.65
addMethod · 0.65

Tested by 2

createMethod · 0.76
createMethod · 0.76