Package java.util

Examples of java.util.Vector.toArray()


        Configuration config = ish.load("default");       
        if ( config != null ) {
            LoadedItem li = new LoadedItem(config.getConfigName(),config,ish);
            configs.add(li);
        }                   
        return (LoadedItem[])configs.toArray(new LoadedItem[0]);
    }
   
}
View Full Code Here


        Configuration config = ish.load("default");
        if ( config != null ) {
            LoadedItem li = new LoadedItem(config.getConfigName(),config,ish);
            configs.add(li);
        }
        return (LoadedItem[])configs.toArray(new LoadedItem[0]);
    }
   
}
View Full Code Here

                if ( all.indexOf(parentCategories[i]) == -1 ) {
                    all.add(parentCategories[i]);
                }
            }
        }  
        return (String[]) all.toArray(new String[0]);
    }
   
    private void addCategoryName(Vector all,String name) {
        all.add(name);       
        NestedCategory myCat = (NestedCategory)getCategory(name);
View Full Code Here

                if ( all.indexOf(parentCategories[i]) == -1 ) {
                    all.add(parentCategories[i]);
                }
            }
        }       
        return (String[]) all.toArray(new String[0]);
    }
   
    /**
     * Besides setting the category, it will also set this
     * category as default category if main is true. It will
View Full Code Here

        while ( sto.hasMoreElements() ) {
            String val = (String)sto.nextElement();
            val = vm.replaceVariables(val,configurationName);
            all.add(val);
        }
        return (String[])all.toArray(new String[0]);
    }
   
    /**
     * Helper method to allow for strong-binding within Properties.
     *
 
View Full Code Here

                if ( all.indexOf(parentCategories[i]) == -1 ) {
                    all.add(parentCategories[i]);
                }
            }
        }       
        return (String[]) all.toArray(new String[0]);
    }
   
    /**
     * This method returns the String value based on the given key.
     *
 
View Full Code Here

                    keys.add(nm);
                }
                /*
                Set keys = properties.keySet();
                 */
                return (String[]) keys.toArray(new String[0]);
            }           
        }
        return null;
    }
   
View Full Code Here

        while ( sto.hasMoreElements() ) {
            String val = (String)sto.nextElement();
            val = vm.replaceVariables(val,configName);
            all.add(val);
        }
        return (String[])all.toArray(new String[0]);       
    }
   
    public boolean isNew() {
        return created;
    }
View Full Code Here

          for (int j=from;j<=to;j=j+stepSize) result.add(""+j);
        }
      }
    }
    String[] dummy=new String[1];
    return (String[]) result.toArray(dummy);
  }

  private static String replaceDayNames(String element) {
    element = element.replaceAll("(?i)mon", "1");
    element = element.replaceAll("(?i)tue", "2");
View Full Code Here

  }

  public String[] getFactoryPids() {
    Vector factoryPidsV = new Vector();
    factoryPidsV.addAll(factoryPids.keySet());
    return  (String[]) factoryPidsV.toArray(new String[factoryPidsV.size()])
  }

  public String[] getPids() {
    Vector pidsV = new Vector();
    pidsV.addAll(pids.keySet());
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.