com.gargoylesoftware.htmlunit.html
Class HtmlElement.MapEntryWrappingIterator

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.HtmlElement.MapEntryWrappingIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
HtmlElement

public static class HtmlElement.MapEntryWrappingIterator
extends java.lang.Object
implements java.util.Iterator

Converts an iteration of plain Map.Entry into an iteration of HtmlAttr.

Author:
Denis N. Antonioli

Constructor Summary
HtmlElement.MapEntryWrappingIterator(java.util.Iterator iterator, HtmlElement htmlElement)
 Wraps a new iterator around an iterator of attributes.
 
Method Summary
 boolean hasNext()
 Delegates to wrapped Iterator.
 java.lang.Object next()
 Wraps the next entry into a new HtmlAttr.
 void remove()
 Delegates to wrapped Iterator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlElement.MapEntryWrappingIterator

public HtmlElement.MapEntryWrappingIterator(java.util.Iterator iterator,
                                            HtmlElement htmlElement)
Wraps a new iterator around an iterator of attributes.

Parameters:
iterator - An iterator of Map.Entry.
htmlElement - the Parent of all the attributes.
Method Detail

hasNext

public boolean hasNext()
Delegates to wrapped Iterator.

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if the iterator has more elements.

next

public java.lang.Object next()
Wraps the next entry into a new HtmlAttr.

Specified by:
next in interface java.util.Iterator
Returns:
Next entry.

remove

public void remove()
Delegates to wrapped Iterator.

Specified by:
remove in interface java.util.Iterator


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.