Package java.util

Examples of java.util.Set.toArray()


        if(listeners == null) {
            return null;
        }

        return (TileComputationListener[])listeners.toArray(new TileComputationListener[listeners.size()]);
    }

    /**
     * Within a given rectangle, store the list of tile seams of both
     * X and Y directions into the corresponding split sequence.
View Full Code Here


  if (enumSet == null)
      return null;

  return (EnumeratedParameter[])
        enumSet.toArray(new EnumeratedParameter[0]);
    }

    /**
     * Checks to see if the specified parameter can take on the specified
     * value.
 
View Full Code Here

   public String[] getDomains()
   {
      synchronized (domains)
      {
        Set keys = domains.keySet();
         return (String[])keys.toArray(new String[keys.size()]);
      }
   }

   public Integer getMBeanCount()
   {
View Full Code Here

  private void startMBeanTabBundles(String connString, MBeanServerConnection mbsc) {
    try {
      this.clean();
      Set set_on = mbsc.queryNames( null, null ); // ioe
      Object[] ons=set_on.toArray();
      int oldUnstartedBundleNbr=0;

      do {
        Vector v_unstartedBundle=new Vector();
        oldUnstartedBundleNbr=ons.length;
View Full Code Here

     * @see org.osgi.service.prefs.PreferencesService#getUsers()
     */
    public synchronized String[] getUsers() {
        // TODO - we have to sync with the store
        final Set userKeys = this.trees.keySet();
        return (String[])userKeys.toArray(new String[userKeys.size()]);
    }

    protected List getAllPreferences() {
        final List list = new ArrayList();
        if ( this.systemTree != null ) {
View Full Code Here

    }

    private String[] getPropertyKeys()
    {
        Set s = m_propMap.keySet();
        return (String[]) s.toArray(new String[s.size()]);
    }

    private Bundle[] getUsingBundles()
    {
        return m_registry.getUsingBundles(m_ref);
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

            Enumeration resources = (Enumeration) AccessController.doPrivileged(
                J2DoPrivHelper.getResourcesAction(loader, PREFIX + serviceName));
            while (resources.hasMoreElements())
                addResources((URL) resources.nextElement(), resourceList);

            return (String[]) resourceList.toArray(new String[resourceList
                .size()]);
        } catch (Exception e) {
            // silently swallow all exceptions.
            return new String[0];
        }
View Full Code Here

        for (int i = 0; inners != null && i < inners.length; i++)
            (joins == null ? joins = new TreeSet() : joins).
                add(getPath(onlyChild(inners[i])).last().getFullName(false));

        if (joins != null)
            exps.fetchPaths = (String[]) joins.
                toArray(new String[joins.size()]);

        return filter;
    }
View Full Code Here

    int arraySize = array.length;
    for (int i = 0; i < arraySize; i++) {
      set.add(array[i]);
    }
    return (String[]) set.toArray(new String[set.size()]);
  }
}
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.