MCPcopy Index your code
hub / github.com/androrm/androrm / containsAll

Method containsAll

src/src/com/orm/androrm/QuerySet.java:248–267  ·  view source on GitHub ↗

See QuerySet#contains @param values @return

(Collection<T> values)

Source from the content-addressed store, hash-verified

246 * @return
247 */
248 public boolean containsAll(Collection<T> values) {
249 if(mQuery != null) {
250 List<Object> ids = new ArrayList<Object>();
251
252 for(T item : values) {
253 ids.add(item.getId());
254 }
255
256 Where where = new Where();
257 where.setStatement(new InStatement(Model.PK, ids));
258
259 SelectStatement query = new SelectStatement();
260 query.from(mQuery)
261 .where(where);
262
263 return getCount(query) == values.size();
264 }
265
266 return false;
267 }
268
269 public boolean isEmpty() {
270 return count() == 0;

Callers

nothing calls this directly

Calls 6

setStatementMethod · 0.95
fromMethod · 0.95
getCountMethod · 0.95
getIdMethod · 0.80
addMethod · 0.65
whereMethod · 0.45

Tested by

no test coverage detected