List of usage examples for java.util.concurrent ConcurrentHashMap contains
public boolean contains(Object value)
From source file:com.steffi.index.ImgMapIndex.java
@Override public boolean hasElementForKeyValue(T element, String key, Object value) { ConcurrentHashMap<Object, Boolean> curValues = getMap().get(new IndexKeyValue(key, value)); if (curValues != null) { Cell cellElement = indexClass.cast(element); if (cellElement instanceof SteffiVertex) { return curValues.contains(cellElement.getId()); } else {//from w w w . j av a 2 s. co m SteffiEdge edge = (SteffiEdge) cellElement; return curValues.contains(new EdgeIndexEntry(edge.getSourceCellId(), edge.getId())); } } return false; }