|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.attr.StandardAttributeSet.ImmutableAttributeIterator
public class StandardAttributeSet.ImmutableAttributeIterator
ImmutableAttributeIterator iterates over the category Maps
and the Attribute Sets within them to provide access all all Attribute
instances within an AttributeSet. This class overrides the
remove method of java.util.Iterator for
situations where the items must not be taken out of the backing
collection.
| Constructor Summary | |
|---|---|
StandardAttributeSet.ImmutableAttributeIterator(Map attributeMap)
Create a new ImmutableAttributeIterator |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Check for a next Object. |
Object |
next()
Get the next Object. |
void |
remove()
Unsupported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardAttributeSet.ImmutableAttributeIterator(Map attributeMap)
attributeMap - the Map of Attributes by categoryMap.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator
public Object next()
throws NoSuchElementException
next in interface IteratorNoSuchElementException - if another Object does not exist.
public void remove()
throws UnsupportedOperationException
remove in interface IteratorUnsupportedOperationException - is thrown in all cases
because this backing Collection is immutable via this Iterator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||