Code example for LinkedList

Methods: get, size

0
		int index=0;
 
		@Override 
		public HttpResponse execute(final HttpUriRequest request, final HttpContext context) {
			if (moreFilters()) 
				return filters.get(index++).execute(request, context, this);
			else 
				return theEnd.execute(request, context);
		} 
 
		public boolean moreFilters() { 
			return index<filters.size();
		} 
	} 
}