Package java.util

Examples of java.util.ArrayList.toArray()


       
        if ( vuze_files.size() > 0 ){
         
          VuzeFile[]  vfs = new VuzeFile[vuze_files.size()];
         
          vuze_files.toArray( vfs );
         
          vfh.handleFiles( vfs, VuzeFileComponent.COMP_TYPE_NONE );
        }
       
        if ( non_vuze_files.size() == 0 && vuze_files.size() > 0 ){
View Full Code Here


              
          list.add( new Integer(EXTRA_BUCKETS[i]));
      }
     
      Integer[]  sizes = new Integer[ list.size() ];
      list.toArray( sizes );
      Arrays.sort( sizes);
     
      for (int i=0;i<sizes.length;i++){
       
        ArrayList bufferPool = new ArrayList();
View Full Code Here

            }
        }

        URL[] urls = new URL[jarlist.size()];

        jarlist.toArray(urls);

        // find out if system classes should be excluded from class path
        String excludeSystemClasses = System.getProperty("helma.excludeSystemClasses");

        ClassLoader loader;
View Full Code Here

  }

  void removeConnection (Connection connection) {
    ArrayList<Connection> temp = new ArrayList(Arrays.asList(connections));
    temp.remove(connection);
    connections = temp.toArray(new Connection[temp.size()]);

    pendingConnections.remove(connection.id);
  }

  // BOZO - Provide mechanism for sending to multiple clients without serializing multiple times.
View Full Code Here

        ArrayList result = new ArrayList(ui_factories.size());
        for (int i=0;i<ui_factories.size();i++){
          UIInstanceFactory instance = (UIInstanceFactory)ui_factories.get(i);
          result.add(instance.getInstance(pi));
        }
        return (UIInstance[])result.toArray(new UIInstance[result.size()]);
     }
     finally {
       class_mon.exit();
     }
   }
View Full Code Here

      }
    }
   
    String[]  res = new String[v.size()];
   
    v.toArray( res );
   
      // make it nice for clients
   
    Arrays.sort( res, StaticUtilities.getFormatters().getAlphanumericComparator( true ));
   
View Full Code Here

            if (log.isWarnEnabled()) {
                log.warn("ignored exception", e);
            }
        }

        return (IndexMatch[]) results.toArray(EmptyMatches);
    }
}
View Full Code Here

            if (LOG.isWarnEnabled()) {
                LOG.warn("ignored exception", e);
            }
        }

        return (IndexMatch[]) results.toArray(EmptyMatches);
    }
}
View Full Code Here

      }
    }
   
    items  = new RSSItem[ its.size()];
   
    its.toArray( items );
  }
 
  public String
  getTitle()
  {
View Full Code Here

      txtStart = urlEnd;
    }
    if(txtStart < sb.length())
      ret.add(new TextComponent(sb.substring(txtStart)));

    return (MessageComponent[]) ret.toArray(new MessageComponent[0]);
  }

  /**
   * Parse and get smiley components.
   * <p>
 
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.