private void visitList(final ObjectGraphNode node) {
		int index = 0;

		for (Iterator i = ((List) node.getValue()).iterator(); i.hasNext();) {
			Object entry = i.next();
			String entryType = entry == null ? Object.class.getName() : entry.getClass().getName();

			ObjectGraphNode childNode = new ObjectGraphNode(++nodeCount, "[" + index++ + "]",
					entryType, entry);
			node.add(childNode);
			visit(childNode);
		}

		adjustOverhead(node);
	}
private void visitList ( final ObjectGraphNode node ) { int index = 0 ; for ( Iterator i = ( ( List ) node . getValue ( ) ) . iterator ( ) ; i . hasNext ( ) ; ) { Object entry = i . next ( ) ; String entryType = entry == null ? Object . class . getName ( ) : entry . getClass ( ) . getName ( ) ; ObjectGraphNode childNode = new ObjectGraphNode ( ++ nodeCount , "[" + index ++ + "]" , entryType , entry ) ; node . add ( childNode ) ; visit ( childNode ) ; } adjustOverhead ( node ) ; }
Visits all the elements of the given list.

@param node the ObjectGraphNode containing the list.