Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] adding an iterator() method to nodes

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Steve Loughran" <steve.loughran AT gmail.com>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] adding an iterator() method to nodes
  • Date: Tue, 31 Oct 2006 13:57:19 +0000

Given that Nodes is implemented by a List internally, the cost of
adding a method to access it is pretty low:

public iterator() { return nodes.iterator();}

This would make it trivial to bridge over into java 5 iterators,
instead of trying to re-implement a list iterator, which is the sole
option today.

Thoughts?

-steve




Archive powered by MHonArc 2.6.24.

Top of Page