Package java.util

Examples of java.util.HashSet.toArray()


          InstructionHandle targ = ((JsrInstruction) inst).getTarget();
          h.add(getSubroutine(targ));
        }
      }
      Subroutine[] ret = new Subroutine[h.size()];
      return (Subroutine[]) h.toArray(ret);
    }
   
    /*
     * Sets the local variable slot the ASTORE that is targeted
     * by the JsrInstructions of this subroutine operates on.
View Full Code Here


                getLog().debug(
                        "Adding artifact: " + classPathElement.getFile()
                                + " to classpath");
                urls.add(classPathElement.getFile().toURL());
            }
            URLClassLoader appClassloader = new URLClassLoader((URL[]) urls
                    .toArray(new URL[urls.size()]), this.getClass().getClassLoader());
            return appClassloader;
        } catch (MalformedURLException e) {
            throw new MojoExecutionException(
                    "Error during setting up classpath", e);
View Full Code Here

            fullList.add(jars[x]);
          }
        }
      }
    }
    return (String[]) fullList.toArray(new String[0]);
  }

  public static List findClassesThatExtend(String[] strPathsOrJars,
          Class[] superClasses, boolean innerClasses) throws IOException,
          ClassNotFoundException {
View Full Code Here

        }

        JPQLNode[] findChildrenByID(int id) {
            Collection set = new HashSet();
            findChildrenByID(id, set);
            return (JPQLNode[]) set.toArray(new JPQLNode[set.size()]);
        }

        private void findChildrenByID(int id, Collection set) {
            for (int i = 0; children != null && i < children.length; i++) {
                if (children[i].id == id)
View Full Code Here

            logger.info("object filter = '" + getObjectFilter() + "'" );
         }
         CullDependencies depend = new CullDependencies(cullDef, filteredCullObjectNameSet, getObjectFilter());
        
         String [] names = new String[filteredCullObjectNameSet.size()];
         filteredCullObjectNameSet.toArray(names);
         for(int i = 0; i < names.length; i++ ) {

            CullDependencies.Node node = depend.getNode(names[i]);
            if( node == null ) {
               logger.warning("node for obj " + names[i] + " not found");
View Full Code Here

            }

            // Convert result to an array of Strings.
            int numNames = nameSet.size();
            CaselessStringKey[] caselessNames = new CaselessStringKey[numNames];
            nameSet.toArray(caselessNames);
            names = new String[numNames];
            for(int i = 0; i < numNames; i++) {
                names[i] = caselessNames[i].getName();
            }
        }
View Full Code Here

      }
    }
    if (elements.isEmpty()) {
      return null;
    }
    return selectElement((EObject[]) elements.toArray(new EObject[elements
        .size()]));
  }

  /**
   * @generated
 
View Full Code Here

                allow.add("DELETE");
            }
        }

        String[] methodNames = new String[allow.size()];
        return (String[]) allow.toArray(methodNames);

    }


    // --------------------------------------------------------- Public Methods
View Full Code Here

                            set.add(result[i]);
                        }
                        set.add("flowContext");
                        set.add("continuation");
                        result = new Object[set.size()];
                        set.toArray(result);
                        return result;
                    }
                   
                    public Object get(String key) {
                        if (key.equals("flowContext")) {
View Full Code Here

                allow.add("DELETE");
            }
        }

        String[] methodNames = new String[allow.size()];
        return (String[]) allow.toArray(methodNames);

    }


    // --------------------------------------------------------- Public Methods
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.