Code example for LinkedList

Methods: get, indexOf, size

0
		return this.list.get(index); 
	} 
 
	@Override 
	public Component getComponentBefore(final Container arg0, final Component comp) { 
		int index = this.list.indexOf(comp) - 1; 
		if (index == -1) { 
			index = this.list.size() - 1; 
		} 
		return this.list.get(index); 
	} 
 
	@Override 
	public Component getFirstComponent(final Container arg0) { 
		return this.list.getFirst(); 
	} 
 
	@Override 
	public Component getLastComponent(final Container arg0) { 
		return this.list.getLast(); 
	}