/** {@inheritDoc} */ public boolean addAll( long[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Long> collection ) { boolean changed = false; for ( Long element : collection ) { long e = element.longValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( TLongCollection collection ) { boolean changed = false; TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { long element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
while ( size-- > 0 ) { long val = in.readLong(); add( val );
public void loadTileData(int x31, int y31, int zoomAround, final List<RouteDataObject> toFillIn) { int t = config.ZOOM_TO_LOAD_TILES - zoomAround; int coordinatesShift = (1 << (31 - config.ZOOM_TO_LOAD_TILES)); if(t <= 0) { t = 1; coordinatesShift = (1 << (31 - zoomAround)); } else { t = 1 << t; } TLongHashSet ts = new TLongHashSet(); long now = System.nanoTime(); for(int i = -t; i <= t; i++) { for(int j = -t; j <= t; j++) { ts.add(getRoutingTile(x31 +i*coordinatesShift, y31 + j*coordinatesShift, 0, OPTION_IN_MEMORY_LOAD)); } } TLongIterator it = ts.iterator(); TLongObjectHashMap<RouteDataObject> excludeDuplications = new TLongObjectHashMap<RouteDataObject>(); while(it.hasNext()){ getAllObjects(it.next(), toFillIn, excludeDuplications); } timeToFindInitialSegments += (System.nanoTime() - now); }
req.zoom == -1 ? 31 : req.zoom + ZOOM_TO_SKIP_FILTER); if (read && skipVal != -1 && skipTiles != null) { skipTiles.add(skipVal);
for (RouteSegmentPoint p : listR) { RouteDataObject road = p.getRoad(); if (!set.add(road.getId())) { continue;
| (((long) y) >> (zoom - zoomToSkip)); offsetsMap.put(offset, valSkip); skipTiles.add(valSkip); } else { offsetsMap.put(offset, -1);
if (publish) { read = true; toSkip.add(valSkip);
/** {@inheritDoc} */ public boolean addAll( long[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean addAll( long[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Long> collection ) { boolean changed = false; for ( Long element : collection ) { long e = element.longValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Long> collection ) { boolean changed = false; for ( Long element : collection ) { long e = element.longValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean addAll( Collection<? extends Long> collection ) { boolean changed = false; for ( Long element : collection ) { long e = element.longValue(); if ( add( e ) ) { changed = true; } } return changed; }
synchronized void add(long id) { if (ls == null) ls = new TLongHashSet(); ls.add(id); if (lines == null) lines = ls; else if (lines != ls) ((TLongCompoundCollection) lines).addCollection(ls); }
/** {@inheritDoc} */ public boolean addAll( TLongCollection collection ) { boolean changed = false; TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { long element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( TLongCollection collection ) { boolean changed = false; TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { long element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean addAll( TLongCollection collection ) { boolean changed = false; TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { long element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }