MCPcopy Create free account
hub / github.com/androrm/androrm / createObjects

Method createObjects

src/src/com/orm/androrm/QuerySet.java:169–181  ·  view source on GitHub ↗
(Cursor c)

Source from the content-addressed store, hash-verified

167 }
168
169 private List<T> createObjects(Cursor c) {
170 List<T> items = new ArrayList<T>();
171
172 while(c.moveToNext()) {
173 T object = Model.createObject(mClass, c);
174
175 if(object != null) {
176 items.add(object);
177 }
178 }
179
180 return items;
181 }
182
183 private List<T> getItems() {
184 if(mItems == null) {

Callers 1

getItemsMethod · 0.95

Calls 2

createObjectMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected