Examples of removeFirst()


Examples of aima.core.search.nondeterministic.Plan.removeFirst()

      return (Action) this.stack.pop();
    } // case: next step is a plan
    else if (currentStep instanceof Plan) {
      Plan newPlan = (Plan) currentStep;
      if (newPlan.size() > 0) {
        this.stack.push(newPlan.removeFirst());
      } else {
        this.stack.pop();
      }
      return this.execute(percept);
    } // case: next step is an if-then
View Full Code Here

Examples of com.asakusafw.compiler.common.JavaName.removeFirst()

        if (segments.get(0).equals("get") == false
                || segments.get(segments.size() - 1).equals("option") == false) {
            return null;
        }
        name.removeLast();
        name.removeFirst();
        String propertyName = name.toMemberName();
        return new DefaultPropertyMirror(propertyName, element);
    }

    static String normalize(String name) {
View Full Code Here

Examples of com.asakusafw.compiler.common.JavaName.removeFirst()

        if (segments.get(0).equals("get") == false
                || segments.get(segments.size() - 1).equals("option") == false) {
            return null;
        }
        name.removeLast();
        name.removeFirst();
        return name.toMemberName();
    }

    /**
     * インスタンスを生成する。
 
View Full Code Here

Examples of com.carrotsearch.hppc.IntArrayDeque.removeFirst()

                IntArrayList clusterGroup = new IntArrayList();

                while (!nodeQueue.isEmpty())
                {
                    // Get a node from the queue
                    int node = nodeQueue.removeFirst();

                    // Add to the current sub-graph (cluster group)
                    clusterGroup.add(node);

                    // Add all its non-checked neighbors to the queue
View Full Code Here

Examples of com.cxy.redisclient.service.ListService.removeFirst()

    assertTrue(values.get(0).equals("test"));
  }
 
  public void testRemove() {
    ListService service = new ListService();
    service.removeFirst(1, 0, "mylist");
    service.removeLast(1, 0, "mylist");
  }

}
View Full Code Here

Examples of com.l2jfrozen.gameserver.geo.pathfinding.utils.BinaryNodeHeap.removeFirst()

        }

        Node node;
        try
        {
          node = to_visit.removeFirst();
        }
        catch(Exception e)
        {
          // No Path found
          if(Config.ENABLE_ALL_EXCEPTIONS)
View Full Code Here

Examples of gov.nist.javax.sip.header.RouteList.removeFirst()

                    .equalsIgnoreCase(listeningPoint.getSentBy()))
                    && port == listeningPoint.getPort()) {
                if (routes.size() == 1)
                    sipRequest.removeHeader(Route.NAME);
                else
                    routes.removeFirst();
            }
        }

        if (sipRequest.getMethod().equals(Request.REFER) && dialog != null
                && sipProvider.isDialogErrorsAutomaticallyHandled()) {
View Full Code Here

Examples of gov.nist.javax.sip.header.RouteList.removeFirst()

                route = new Route();
                route.setAddress((AddressImpl) ((AddressImpl) (contact.getAddress())).clone());
            }

            Route firstRoute = (Route) routeList.getFirst();
            routeList.removeFirst();
            javax.sip.address.URI uri = firstRoute.getAddress().getURI();
            ackRequest.setRequestURI(uri);

            if (route != null)
                routeList.add(route);
View Full Code Here

Examples of gov.nist.javax.sip.header.RouteList.removeFirst()

                    .equalsIgnoreCase(listeningPoint.getSentBy()))
                    && port == listeningPoint.getPort()) {
                if (routes.size() == 1)
                    sipRequest.removeHeader(Route.NAME);
                else
                    routes.removeFirst();
            }
        }

        if (sipRequest.getMethod().equals(Request.REFER) && dialog != null
                && sipProvider.isDialogErrorsAutomaticallyHandled()) {
View Full Code Here

Examples of gov.nist.javax.sip.header.RouteList.removeFirst()

                    .equalsIgnoreCase(listeningPoint.getSentBy()))
                    && port == listeningPoint.getPort()) {
                if (routes.size() == 1)
                    sipRequest.removeHeader(Route.NAME);
                else
                    routes.removeFirst();
            }
        }
        final String sipRequestMethod = sipRequest.getMethod();
        if (sipRequestMethod.equals(Request.REFER) && dialog != null
                && sipProvider.isDialogErrorsAutomaticallyHandled()) {
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.