Code example for Vector

Methods: addElementremoveAllElements

0
	/** 
	 * Adds a new element to download. 
	 */ 
	public void enqueue(RequestedResource resource, BrowserContent referrer) {
		if (browser != referrer) {
			queue.removeAllElements();
			browser = referrer;
		} 
		queue.addElement(resource);
	} 
 
	/** 
	 * Downloads all queued resources. 
	 */ 
	public void run() { 
		if (!queue.isEmpty()) processResource();
		main.invokeLater(this, queue.isEmpty() ? 250 : 1, false);
	} 
 
	private void processResource() { 
Contextual code suggestions in your IDE  Get Codota for Java