Examples of toArray()


Examples of java.beans.beancontext.BeanContextSupport.toArray()

 
  public void testMethod1(TestHarness harness)
  {
    harness.checkPoint("()");
    BeanContextSupport bcs = new BeanContextSupport();
    Object[] array = bcs.toArray();
    harness.check(array.length, 0);
    BeanContextSupport child1 = new BeanContextSupport();
    bcs.add(child1);
    array = bcs.toArray();
    harness.check(array.length, 1);
View Full Code Here

Examples of java.util.AbstractList.toArray()

      items.add(names.substring(start, end));
      start = end;
      while (start < names.length() && names.charAt(start) == ' ')
        start++;
    }
    return (String[]) items.toArray(stringArray0);
  }

  /**
   * Takes an existing model parm and fills a pre-allocated treeItem. 3 callers:
   * addNewConfigurationParameter, alterExistingConfigurationParamater (editing), fill (bulk update
View Full Code Here

Examples of java.util.ArrayList.toArray()

        list.add("delete from pm1.g2 where pm1.g2.e1 >= 610");
        list.add("delete from pm1.g1 where pm1.g1.e1 >= 610");
        list.add("delete from pm2.g2 where pm2.g2.e1 >= 610");
        list.add("delete from pm2.g1 where pm2.g1.e1 >= 610");
       
        return(String[])list.toArray(new String[list.size()]);
    }
   
   
    /**
     * Sources = 2
View Full Code Here

Examples of java.util.BitSet.toArray()

            if (comparisonScore < LOCALITY_COMPARISON_FACTOR) {
                break;
            }
            locations.add(locationNames[pairs[i].location]);
        }
        return locations.toArray(new String[locations.size()]);
    }

    private Environment createEnvironment(
            Configuration configuration,
            List<Source> sources) throws IOException, InterruptedException {
View Full Code Here

Examples of java.util.EnumSet.toArray()

            return null;

        ArrayList values = new ArrayList();

        EnumSet s = (EnumSet) value;
        Object[] array = s.toArray();
        for (int i = 0; i < array.length; i++) {
            values.add(ec.encode(array[i]));
        }

        return values;
View Full Code Here

Examples of java.util.HashSet.toArray()

      return;
    }
   
    Set serviceNames = new HashSet();
    computeOSGiServiceNames(obj.getClass(), obj, serviceNames);
    ServiceRegistration registration = Activator.context.registerService((String[]) serviceNames.toArray(new String[serviceNames.size()]), obj, registrationProperties);
    registeredServices.put(objName, registration);
  }

  private void computeOSGiServiceNames(Class beanClass, Object bean, Set registered) {
    if (beanClass == null) {
View Full Code Here

Examples of java.util.LinkedHashSet.toArray()

                }
                classpathUrls.add(file.toURI().toURL());
            }
        }
        final URLClassLoader loader =
            new URLClassLoader((URL[])classpathUrls.toArray(new URL[0]),
                Thread.currentThread().getContextClassLoader());
        Thread.currentThread().setContextClassLoader(loader);
    }
}
View Full Code Here

Examples of java.util.NavigableSet.toArray()

        NavigableSet keySet;
        String key;
        String[] keyArray;

        keySet = navigableMap_startExcluded_endExcluded.navigableKeySet();
        keyArray = (String[]) keySet.toArray(new String[keySet.size()]);
        for (int i = 0, j = 101; i < keyArray.length; i++) {
            key = (String) keySet.ceiling(keyArray[i]);
            assertEquals(new Integer(i + j).toString(), key);
        }
View Full Code Here

Examples of java.util.Set.toArray()

      return;
    }
   
    Set serviceNames = new HashSet();
    computeOSGiServiceNames(obj.getClass(), obj, serviceNames);
    ServiceRegistration registration = Activator.context.registerService((String[]) serviceNames.toArray(new String[serviceNames.size()]), obj, registrationProperties);
    registeredServices.put(objName, registration);
  }

  private void computeOSGiServiceNames(Class beanClass, Object bean, Set registered) {
    if (beanClass == null) {
View Full Code Here

Examples of java.util.SortedSet.toArray()

                    throw new Error(errorMessage);
                }
            }
        }

        return (BeanProperty[]) propSet.toArray(new BeanProperty[0]);
    }

    public PkMetadata collectPkHierarchy(JavaClass javaClass) {
        PkMetadata retVal = null;
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.