Package java.util

Examples of java.util.Vector.insertElementAt()


        }

        pullQ = conn.getPullQ();

        synchronized (pullQ) {
            pullQ.insertElementAt(p, 0);
            pullQ.notify();
        }
    }

    public void retrySendPackets(Vector v, String connIdStr, String serverName) {
View Full Code Here


        pullQ = conn.getPullQ();

        synchronized (pullQ) {
            for (int i = 0; i < v.size(); i++) {
                pullQ.insertElementAt(v.elementAt(i), i);
            }

            pullQ.notify();
        }
    }
View Full Code Here

            targetName = currentTarget.getName();
            targetDescription = currentTarget.getDescription();
            // maintain a sorted list of targets
            if (targetDescription == null) {
                int pos = findTargetPosition(subNames, targetName);
                subNames.insertElementAt(targetName, pos);
            } else {
                int pos = findTargetPosition(topNames, targetName);
                topNames.insertElementAt(targetName, pos);
                topDescriptions.insertElementAt(targetDescription, pos);
                if (targetName.length() > maxLength) {
View Full Code Here

   
    Iterator variablesIterator = variables.iterator();   
    while(variablesIterator.hasNext()) {
      Parameter parameter = (Parameter) variablesIterator.next();
      if (parameter.getAccess().equals(Parameter.accessPublic)) {       
        sortedVars.insertElementAt(parameter, 0);
      }
      else if (parameter.getAccess().equals(Parameter.accessProtected)) {       
        sortedVars.add(parameter);
      }
    }
View Full Code Here

   
    Iterator variablesIterator = variables.iterator();   
    while(variablesIterator.hasNext()) {
      Parameter parameter = (Parameter) variablesIterator.next();
      if (parameter.getAccess().equals(Parameter.accessPublic)) {       
        sortedVars.insertElementAt(parameter, 0);
      }
      else if (parameter.getAccess().equals(Parameter.accessProtected)) {       
        sortedVars.add(parameter);
      }
    }
View Full Code Here

   
    Iterator variablesIterator = variables.iterator();   
    while(variablesIterator.hasNext()) {
      Parameter parameter = (Parameter) variablesIterator.next();
      if (parameter.getAccess().equals(Parameter.accessPublic)) {       
        sortedVars.insertElementAt(parameter, 0);
      }
      else if (parameter.getAccess().equals(Parameter.accessProtected)) {       
        sortedVars.add(parameter);
      }
    }
View Full Code Here

    int argright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;
    Expression arg = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;
    int arglleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;
    int arglright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;
    Vector argl = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;
     argl.insertElementAt(arg, 0); RESULT = argl;
              CUP$XPathParser$result = new java_cup.runtime.Symbol(36/*NonemptyArgumentList*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);
            }
          return CUP$XPathParser$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
 
View Full Code Here

    int pright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;
    Expression p = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;
    int ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;
    int ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;
    Vector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;
     pp.insertElementAt(p, 0); RESULT = pp;
              CUP$XPathParser$result = new java_cup.runtime.Symbol(35/*Predicates*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);
            }
          return CUP$XPathParser$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
 
View Full Code Here

    final LocationPathPattern lppToCompare =
        (LocationPathPattern)patterns.elementAt(i);

    if (pattern.noSmallerThan(lppToCompare)) {
        inserted = true;
        patterns.insertElementAt(pattern, i);
        break;
    }
      }
      if (inserted == false) {
    patterns.addElement(pattern);
View Full Code Here

            }
            targetDescription = currentTarget.getDescription();
            // maintain a sorted list of targets
            if (targetDescription == null) {
                int pos = findTargetPosition(subNames, targetName);
                subNames.insertElementAt(targetName, pos);
            } else {
                int pos = findTargetPosition(topNames, targetName);
                topNames.insertElementAt(targetName, pos);
                topDescriptions.insertElementAt(targetDescription, pos);
                if (targetName.length() > maxLength) {
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.