public boolean matches(GridCacheVersion ver,UUID nodeId,long threadId){
  return ver.equals(this.ver) || (nodeId.equals(this.nodeId) && threadId == this.threadId);
}

public boolean matches ( GridCacheVersion ver , UUID nodeId , long threadId ) { return ver . equals ( this . ver ) || ( nodeId . equals ( this . nodeId ) && threadId == this . threadId ) ; }
checks if this candidate matches version or thread - nodeid combination .
