Examples of toArray()


Examples of org.pentaho.reporting.engine.classic.core.style.StyleSheet.toArray()

        new ManualBreakIndicatorStyleSheet(BandDefaultStyleSheet.getBandDefaultStyle());
    final StyleSheet manualBreakBoxStyle = new SimpleStyleSheet(mbis);

    final int styleCount = (StyleKey.getDefinedStyleKeyCount());
    assertTrue(styleCount > 0);
    final Object[] objects = manualBreakBoxStyle.toArray();
    assertNotNull(objects);
    assertEquals(objects.length, styleCount);
  }

View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.FloatList.toArray()

    if (floats.size() == 0)
    {
      return null;
    }
    return (new PolygonImageMapEntry(floats.toArray()));
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.IntList.toArray()

      }

      levelData[i] = new LevelStorage(currentLevel,
          expressionPositions.toArray(), activeExpressions.toArray(),
          functions.toArray(), pageEventListeners.toArray(),
          prepareEventListeners.toArray());

      expressionPositions.clear();
      activeExpressions.clear();
      functions.clear();
      pageEventListeners.clear();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.LongList.toArray()

        pageLongList.add(pos);
      }
    }
    pageLongList.add(endOfLine);

    this.pagebreaks = pageLongList.toArray(this.pagebreaks);
    this.pagebreakCount = pageLongList.size();
  }

  public boolean hasNext()
  {
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.HashNMap.toArray()

    Arrays.sort(keys);
    for (int i = 0; i < keys.length; i++)
    {
      final Object key = keys[i];
      logger.info("Group: '" + key + "' Size: " + expressionsByGroup.getValueCount(key));
      final Object[] objects = expressionsByGroup.toArray(key);
      for (int j = 0; j < objects.length; j++)
      {
        ExpressionMetaData metaData = (ExpressionMetaData) objects[j];
        logger.info("   " + metaData.getExpressionType());
View Full Code Here

Examples of org.prevayler.socketserver.example.server.TodoList.toArray()

*/
public class Main {

  public static synchronized void printList(Object todoList) {
    TodoList theList = (TodoList) todoList;
    Todo[] items = theList.toArray();
    for (int i = 0; i < items.length; i++) {
      System.out.println(items[i].getId() + "\t" + items[i].getDesc());
    }
    System.out.println();
  }
View Full Code Here

Examples of org.primefaces.model.TreeNodeChildren.toArray()

     */
    public static void sortNode(TreeNode node, Comparator comparator) {
        TreeNodeChildren children = (TreeNodeChildren) node.getChildren();
       
        if(children != null && !children.isEmpty()) {
            Object[] childrenArray = children.toArray();
            Arrays.sort(childrenArray, comparator);
            for(int i = 0; i < childrenArray.length; i++) {
                children.setSibling(i, (TreeNode) childrenArray[i]);
            }
           
View Full Code Here

Examples of org.python.core.PyList.toArray()

    protected SimpleFeatureType buildFeatureType() throws IOException {
        SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder();
        tb.setName(((PyString)schema.__findattr__("name")).asString());
       
        PyList fields = (PyList) schema.__findattr__("fields");
        for (Object o : fields.toArray()) {
            PyObject field = (PyObject) o;
           
            String name = ((PyString)field.__findattr__("name")).asString();
           
            PyType type = (PyType)field.__findattr__("typ");
View Full Code Here

Examples of org.python.core.PySet.toArray()

    public static void testPySetAsJavaSet() {
        PySet s = new PySet();
        String v = "value";
        check(s.add(v));// Add a String as it should be wrapped in PyString
        check(!s.add(v));
        String[] asArray = (String[])s.toArray(new String[0]);// The array type should be the same
        // and it should be resized properly
        check(asArray.length == 1);
        check(asArray[0] == v);
        Object[] naiveArray = s.toArray();
        check(naiveArray.length == 1);
View Full Code Here

Examples of org.qi4j.runtime.composite.UsesInstance.toArray()

                try
                {
                    if (context.instance() != null)
                        uses = uses.use( context.instance() );
                    usesObject = moduleInstance.newTransient( injectionType, uses.toArray() );
                } catch( NoSuchCompositeException e )
                {
                    try
                    {
                        usesObject = moduleInstance.newObject( injectionType, uses.toArray() );
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.