MCPcopy Index your code
hub / github.com/EdwardRaff/JSAT / contains

Method contains

JSAT/src/jsat/utils/IntPriorityQueue.java:367–382  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

365 }
366
367 @Override
368 public boolean contains(Object o)
369 {
370 if(fastValueRemove == Mode.HASH)
371 return valueIndexMap.containsKey(o);
372 else if(fastValueRemove == Mode.BOUNDED)
373 {
374 if( o instanceof Integer)
375 {
376 int val = ((Integer) o).intValue();
377 return val >= 0 && valueIndexStore[val] >= 0;
378 }
379 return false;
380 }
381 return super.contains(o);
382 }
383
384 @Override
385 public void clear()

Callers

nothing calls this directly

Calls 1

containsKeyMethod · 0.45

Tested by

no test coverage detected