public final boolean execute(long value) { return that.contains(value); } });
/** * Tests the set to determine if all of the elements in * <tt>array</tt> are present. * * @param array an <code>array</code> of long primitives. * @return true if all elements were present in the set. */ public boolean containsAll(long[] array) { for (int i = array.length; i-- > 0;) { if (! contains(array[i])) { return false; } } return true; }
@Override public Document getDocument() { long docno; try { docno = Long.parseLong(((FlatJSONDocument)currentDocument).getProperty("docno") ); } catch (Exception e) { logger.warn("WARN: Parsing failure... skipping document"); return null; } if(alldocnos.contains(docno)) return null; alldocnos.add(docno); return currentDocument; }
@Override public Document getDocument() { long docno; try { docno = Long.parseLong(((FlatJSONDocument)currentDocument).getProperty("docno") ); } catch (Exception e) { logger.warn("WARN: Parsing failure... skipping document"); return null; } if(alldocnos.contains(docno)) return null; alldocnos.add(docno); return currentDocument; }
if (val instanceof Long) { long v = unwrap(val); if (_set.contains(v)) {