Re: Problematical implementation of Iterator API ?

2007-11-04 Thread Carsten Ziegeler
Felix Knecht wrote: Now my question: Documentation for 2.2. is still not complete, so the link to 2.1 [1] The forEach tag allows you to iterate over a collection of objects, ... In the 'before' I'm completely missing a collection thus a result should IMO rather look like root snip

Problematical implementation of Iterator API ?

2007-11-03 Thread Felix Knecht
Hi all I have found at different locations [1] an implementation (more or less similar) for an EmptyIterator, e.g. static class EmptyIterator implements Iterator { public boolean hasNext() { return false; } public Object next() { return null; } public void remove() {} } Many of

Re: Problematical implementation of Iterator API ?

2007-11-03 Thread Carsten Ziegeler
Felix Knecht wrote: Hi all I have found at different locations [1] an implementation (more or less similar) for an EmptyIterator, e.g. static class EmptyIterator implements Iterator { public boolean hasNext() { return false; } public Object next() { return null; } public

Re: Problematical implementation of Iterator API ?

2007-11-03 Thread Felix Knecht
Carsten Ziegeler schrieb: Felix Knecht wrote: Hi all I have found at different locations [1] an implementation (more or less similar) for an EmptyIterator, e.g. static class EmptyIterator implements Iterator { public boolean hasNext() { return false; } public Object next() {