Examples of pop()


Examples of dovetaildb.util.PriorityQueue.pop()

      AdjacencyRec adj = new AdjacencyRec(curNode, prevAdj);
      queue.insertAndGrow(adj);
      prevAdj = adj;
    }
    while(queue.size >= threshold) {
      AdjacencyRec rec = (AdjacencyRec)queue.pop();
      if (rec.dirty) {
        rec.dirty = false;
        queue.insert(rec);
      } else {
        rec.node1.addAll(rec.node2);
View Full Code Here

Examples of edu.umd.cloud9.util.StackOfInts.pop()

     
      lStack.push(left);
      rStack.push(right);
        while(!lStack.isEmpty()){
          left = lStack.pop();
          right = rStack.pop();
          int i = partition(keys, counts, left, right);
          if (i-1 > left){
            lStack.push(left);
            rStack.push(i-1);
          }
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.pop()

            glUniform4f( baseColorUnif, 0.2f, 0.5f, 0.2f, 1.0f );
            glUniformMatrix4( modelToCameraMatrixUnif, false, currMatrix.top().fillAndFlipBuffer( mat4Buffer ) );

            plane.render();

            currMatrix.pop();
        }

        {
            currMatrix.push();
            currMatrix.translate( camTarget );
View Full Code Here

Examples of flexjson.Path.pop()

                    transformer.transform(value.get(key));

                }

                path.pop();

            }
            getContext().writeCloseObject();
        } catch( Exception ex ) {
            throw new JSONException(String.format("%s: Error while trying to serialize.", path), ex);
View Full Code Here

Examples of fr.eolya.crawler.queue.ISourceItemsQueue.pop()

        assertEquals(3, queue.size());

        assertEquals(0, queue.getDoneQueueSize());
        assertFalse(queue.isDone("http://a.a.a/"));
       
        assertEquals("http://a.a.a/", queue.pop().get("url"));
        assertEquals("http://a.a.a/2.html", queue.pop().get("url"));
        assertEquals("http://a.a.a/3.html", queue.pop().get("url"));

        assertEquals(3, queue.getDoneQueueSize());
        assertTrue(queue.isDone("http://a.a.a/"));
View Full Code Here

Examples of fr.eolya.crawler.queue.ISourceQueue.pop()

            bFinished = true;
            continue;
          }
        }

        Map<String,Object> srcData = sourceQueue.pop();
        if (srcData!=null) {
          String srcId = String.valueOf(srcData.get("id"));

          if (CrawlerUtils.isAcceptedCountry((String)srcData.get("country"), countryInclude, countryExclude) || !"".equals(sourceId)) {
View Full Code Here

Examples of gnu.trove.stack.TIntStack.pop()

        for (int i = startIndex; i < n.entryCount; i++) {
          if (Rectangle.distanceSq(n.entriesMinX[i], n.entriesMinY[i],
                                 n.entriesMaxX[i], n.entriesMaxY[i],
                                 p.x, p.y) <= furthestDistanceSq) {
            parents.push(n.ids[i]);
            parentsEntry.pop();
            parentsEntry.push(i); // this becomes the start index when the child has been searched
            parentsEntry.push(-1);
            near = true;
            break; // ie go to next iteration of while()
          }
View Full Code Here

Examples of gnu.trove.stack.array.TIntArrayStack.pop()

        for (int i = startIndex; i < n.entryCount; i++) {
          if (Rectangle.distanceSq(n.entriesMinX[i], n.entriesMinY[i],
                                 n.entriesMaxX[i], n.entriesMaxY[i],
                                 p.x, p.y) <= furthestDistanceSq) {
            parents.push(n.ids[i]);
            parentsEntry.pop();
            parentsEntry.push(i); // this becomes the start index when the child has been searched
            parentsEntry.push(-1);
            near = true;
            break; // ie go to next iteration of while()
          }
View Full Code Here

Examples of gov.nasa.worldwind.util.OGLStackHandler.pop()

        {
            this.doDrawBackgroundTexture(dc, width, height, 1, pickPosition, texture);
        }
        finally
        {
            ogsh.pop(gl);
        }
    }
}
View Full Code Here

Examples of io.github.asyncronous.toast.ui.ToastWindow.pop()

     */
    public void popQuestion(String msg) {
        ToastWindow window = new ToastWindow();
        window.setText(msg);
        window.setIcon(new ImageIcon((Image) UIManager.get(ToasterConstants.QUESTION_ICON)));
        window.pop();
    }

    /**
     * Will generate a standard info Toaster Notification with the chosen settings
     *
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.