Examples of peek()


Examples of EDU.oswego.cs.dl.util.concurrent.FutureResult.peek()

        try {
            if (timeout < 0) {
                return (Message) future.get();
            }
            else if (timeout == 0) {
                return (Message) future.peek();
            }
            else {
                return (Message) future.timedGet(timeout);
            }
        }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue.peek()

                  e1.printStackTrace();
               }
            }
         });
         waitForFailoverComplete(1, conn);
         assertNull(buffer.peek());
         waitForFailoverComplete(2, conn);
         assertNull(buffer.peek());
         waitForFailoverComplete(3, conn);
         assertNull(buffer.peek());
         ServerManagement.kill(0);
View Full Code Here

Examples of abstrasy.Bytes.peek()

         *
         */
        startAt.isGoodArgsCnt(3);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        return new Node(b.peek(adr));
    }

}
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEnvironmentStack.peek()

    static final void setClientSideConfirmation (AWRequestContext requestContext,
                                                 AWEncodedString confirmationId)
    {
        AWEnvironmentStack env = requestContext.pageComponent().env();

        List idList= (List)env.peek(ClientSideConfirmationIdList);
        if (idList == null) {
            idList = ListUtil.list();
            env.push(Confirmation.ClientSideConfirmationIdList, idList);
        }
        idList.add(confirmationId);
View Full Code Here

Examples of at.newmedialab.ldpath.template.model.freemarker.TemplateStackModel.peek()

    public void execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) throws TemplateException, IOException {
        TemplateStackModel contextStack = (TemplateStackModel)env.getVariable("context");
        if(contextStack == null || contextStack.empty()) {
            throw new TemplateModelException("error; no context node available");
        }
        TemplateNodeModel<Node> context = (TemplateNodeModel<Node>)contextStack.peek();

        SimpleScalar pathScalar = (SimpleScalar)params.get("path");
        if(pathScalar == null) {
            throw new TemplateException("the directive has been called without a path parameter",env);
        }
View Full Code Here

Examples of cc.plural.jsonij.StringJSONReader.peek()

    @Test
    public void testStringJSONReader() throws IOException, ParserException {
        System.out.println("getStringReader");
        StringJSONReader instance = new StringJSONReader(TEST_STRING1);
        char c;
        c = (char) instance.peek();
        assertEquals('T', c);
        c = (char) instance.read();
        assertEquals('T', c);
        c = (char) instance.peek();
        assertEquals('h', c);
View Full Code Here

Examples of cc.plural.jsonij.parser.ReaderParser.peek()

        StringBuilder valueStringBuilder = new StringBuilder();
        ReaderParser targetString = target.getStringReader();
        targetString.read();
        int p;
        while (true) {
            p = targetString.peek();
            if (p == DOUBLE_QUOTE) {
                break;
            } else if (p == REVERSE_SOLIDUS) {
                targetString.read();
                p = targetString.peek();
View Full Code Here

Examples of com.adobe.epubcheck.opf.OPFPeeker.peek()

    ValidationReport testReport = new ValidationReport(fileName,
        Messages.get("opv_version_test"));
    try
    {
      OPFPeeker peeker = new OPFPeeker(fileName, testReport, provider);
      result = peeker.peek();
    } catch (InvalidVersionException e)
    {
      testReport.message(MessageId.RSC_005, new MessageLocation(fileName, -1,
          -1), e.getMessage());
    } catch (IOException e) {
View Full Code Here

Examples of com.aragost.javahg.internals.HgInputStream.peek()

            if (stream.match(NO_BOOKMARKS)) {
                stream.consumeAll();
                return Collections.emptyList();
            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(' ');
                stream.upTo(':');
View Full Code Here

Examples of com.badlogic.gdx.utils.FloatArray.peek()

    FloatArray hull = this.hull;
    int size = hull.size;
    float p1x = hull.get(size - 4);
    float p1y = hull.get(size - 3);
    float p2x = hull.get(size - 2);
    float p2y = hull.peek();
    return (p2x - p1x) * (p3y - p1y) - (p2y - p1y) * (p3x - p1x);
  }

  /** Sorts x,y pairs of values by the x value, then the y value.
   * @param count Number of indices, must be even. */
 
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.