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

Method contains

JSAT/src/jsat/utils/IntSet.java:206–210  ·  view source on GitHub ↗
(int o)

Source from the content-addressed store, hash-verified

204 }
205
206 public boolean contains(int o)
207 {
208 int index = (int) (getIndex(o) & INT_MASK);
209 return status[index] == OCCUPIED;//would be FREE if we didn't have the key
210 }
211
212 @Override
213 public boolean remove(Object key)

Calls 1

getIndexMethod · 0.95