Package java.util

Examples of java.util.Vector.toArray()


      if (isPotentialCrosscutClass(crtCls))
        resultList.add(crtCls);
    }

    // and return the corresponding array
    result = (Class[])resultList.toArray(new Class[]{});
    return result;
  }

  /** Return true only if
   * <ol>
 
View Full Code Here


    catch (IllegalAccessException probablyPrivate) {
      Logger.error("Probably private definition:",probablyPrivate);
      throw new IllegalAspectException(" Probably private crosscut definitions:" + probablyPrivate.toString());
    }

    return (Crosscut[])(theCrosscuts.toArray(new Crosscut[]{}));
  }

}
View Full Code Here

    if (insertId != null) {
      arguments.add("--insertId");
      arguments.add(insertId.toString());
    }
    arguments.addAll(doGetCommonArgs(address,txid,isReal));
    return (String[])arguments.toArray(new String[]{});
  }


  public static void main(String[] args) {
    int exitCode=1; // assume there will be an error
View Full Code Here

      if (isPotentialCrosscutClass(crtCls))
        resultList.add(crtCls);
    }

    // and return the corresponding array
    result = (Class[])resultList.toArray(new Class[]{});
    return result;
  }

  /** Return true only if
   * <ol>
 
View Full Code Here

            reply = control.readReply();
            lastValidReply = control.validateReply(reply, validCodes2);

            // empty array is default
            if (!lines.isEmpty())
                result = (String[])lines.toArray(result);
        }
        return result;
    }

    /**
 
View Full Code Here

              log.error("Unsupported byte range element: " + r);
            }
          }
         
          if(v.size() > 0) {
            return (Range[]) v.toArray(new Range[0]);
          }
        }
       
      }
    } catch (Throwable t) {
View Full Code Here

            vTips.add(lang.getText(prefix + ind++));
            moreTips = !lang.getText(prefix + ind).startsWith(
                    GanttLanguage.MISSING_RESOURCE);
        }
        tipsText = new String[vTips.size()];
        vTips.toArray(tipsText);

        // tipsText = new String []{
        // lang.getText("tips1"), lang.getText("tips2"), lang.getText("tips3"),
        // lang.getText("tips4"),
        // lang.getText("tips5"), lang.getText("tips6"), lang.getText("tips7"),
View Full Code Here

    Vector v = new Vector();
    while (e.hasMoreElements())
      v.add((TaskNode) e.nextElement());
    Task[] res = new Task[v.size()];
    v.toArray(res);
    return res;

  }

  /**
 
View Full Code Here

      if (name.equals(mp.getName())) {
        matches.add(mp);
      }
    }
   
    Object [] comps = matches.toArray();
    MainPanel [] ret = new MainPanel[comps.length];
    for (int i = 0 ; i < comps.length; i++)
      ret[i] = (MainPanel) comps[i];
    return ret;
  }
View Full Code Here

    for (int i =0; i < docked.length; i++) {
      MainPanel mp = (MainPanel) docked[i];
      matches.add(mp);
    }
   
    Object [] comps = matches.toArray();
    MainPanel [] ret = new MainPanel[comps.length];
    for (int i = 0 ; i < comps.length; i++)
      ret[i] = (MainPanel) comps[i];
    return ret;
  }
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.