Examples of pop()


Examples of java.util.ArrayDeque.pop()

    public void externalPostInvoke() {
        try {
          ArrayDeque beanContextStack =
                (ArrayDeque) threadLocalContext.get();
           
            final BeanContext bc = (BeanContext) beanContextStack.pop();
            if ( bc.classLoaderSwitched == true ) {
              if (System.getSecurityManager() == null) {
                Thread.currentThread().setContextClassLoader(bc.previousClassLoader);
            } else {
                java.security.AccessController.doPrivileged(
View Full Code Here

Examples of java.util.Deque.pop()

            que.add(testInt[i]);
        }       
        assertEquals(100, deque.size());
        assertEquals(100, que.size());
        for (int i = testInt.length-1; i >=0 ; i--) {
            assertEquals(testInt[i], deque.pop());
        }               
        assertEquals(0, deque.size());
        assertEquals(0, que.size());
        for (int i = 0; i < testInt.length; i++) {
            deque.push(testInt[i]);
View Full Code Here

Examples of java.util.LinkedList.pop()

         */
        LinkedList<TrustGraphNodeId> shuffled = new LinkedList(neighbors);
        Collections.shuffle(shuffled);
        for (int i = 0; i < neighbors.size(); i++) {
            // select a neighbor to remove and remove it
            TrustGraphNodeId remove = shuffled.pop();
            rt.removeNeighbor(remove);

            // make sure it's gone
            assertFalse(rt.contains(remove));
       
View Full Code Here

Examples of java.util.Stack.pop()

    Set tableSet = new TreeSet();
   
    String pop1 = "";
    String pop2 = "";   
    pop1 = (String)stack.pop();
    tableSet.add(pop1);
    String searchClause = " ";
   
    while(!stack.empty())
    {
View Full Code Here

Examples of jodd.json.Path.pop()

      }

      // done

      if (!include) {
        currentPath.pop();
        continue;
      }

      if (key == null) {
        jsonContext.pushName(null, count > 0);
View Full Code Here

Examples of kilim.analysis.Frame.pop()

        Frame f = new Frame(1, 4);
        f.push(Value.make(0, D_LONG));
        f.push(Value.make(0, D_DOUBLE));
        f.push(Value.make(0, D_ARRAY_BOOLEAN));
        f.push(Value.make(0, D_RETURN_ADDRESS));
        f.pop();
        f.pop();
        f.pop();
        assertSame(D_LONG, f.pop().getTypeDesc());
    }
View Full Code Here

Examples of lombok.val.pop()

    // iterate through all added interfaces
    while (typeStack.size() > 0)
    {
      // get next and check if matching
      Class<?> iType = typeStack.pop();
      if (iType.equals(interfaceType))
        return true;
      else
        // otherwise add this type's implementing interfaces for investigation
        for (Class<?> iface : iType.getInterfaces())
View Full Code Here

Examples of maelstrom.funge.interpreter.stack.Stack.pop()

  public static class Not implements Operator {

    public void perform(Funge funge) {
      Stack stack = funge.getStackStack().getStack();

      stack.push(stack.pop() == 0 ? 1 : 0);
    }

    public String getDescription() {
      return "Pushes the logical not of the first element on the stack";
    }
View Full Code Here

Examples of mf.org.apache.xerces.util.IntStack.pop()

                if (opStack.isEmpty()) {
                    return retValue;
                }

                op = (Op) opStack.pop();
                offset = dataStack.pop();

                switch (op.type) {
                case Op.CLOSURE:
                case Op.QUESTION:
                    if (retValue < 0) {
View Full Code Here

Examples of net.hasor.db.datasource.local.ConnectionSequence.pop()

/** */
class SyncTransactionManager {
    public static void setSync(final TransactionObject tranConn) {
        LocalDataSourceHelper localHelper = (LocalDataSourceHelper) DataSourceUtils.getDataSourceHelper();
        ConnectionSequence connSeq = localHelper.getConnectionSequence(tranConn.getDataSource());
        connSeq.pop();
    }
    public static void clearSync(final DataSource dataSource) {
        LocalDataSourceHelper localHelper = (LocalDataSourceHelper) DataSourceUtils.getDataSourceHelper();
        ConnectionSequence connSeq = localHelper.getConnectionSequence(dataSource);
        connSeq.push(null);
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.