Spring Framework CompositeIterator - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework CompositeIterator class.

This code example shows how to use the following methods:
	} 
 
	protected Iterator<String> getAttributeNames() {
		if (request instanceof MultipartActionRequest) {
			MultipartActionRequest multipartRequest = (MultipartActionRequest) request;
			CompositeIterator<String> iterator = new CompositeIterator<String>();
			iterator.add(multipartRequest.getFileMap().keySet().iterator());
			iterator.add(CollectionUtils.toIterator(request.getParameterNames()));
			return iterator;
		} else { 
			return CollectionUtils.toIterator(request.getParameterNames());
		} 
	} 
} 
5
CodeRank