()
| 181 | } |
| 182 | |
| 183 | private List<T> getItems() { |
| 184 | if(mItems == null) { |
| 185 | mItems = new ArrayList<T>(); |
| 186 | |
| 187 | if(mQuery != null) { |
| 188 | Cursor c = getCursor(mQuery); |
| 189 | mItems.addAll(createObjects(c)); |
| 190 | closeConnection(c); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | return mItems; |
| 195 | } |
| 196 | |
| 197 | @Override |
| 198 | public Iterator<T> iterator() { |
no test coverage detected