|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.higgins.util.jscript.JScriptObjectImmutableIterator
Allows single objects to be viewed as an iterator
This is a version of Iterator that overrides the remove
method so that items can't be taken out of the Native Array, and helps
with type mapping.
| Constructor Summary | |
|---|---|
JScriptObjectImmutableIterator(HashSet obj)
|
|
JScriptObjectImmutableIterator(Iterator obj)
|
|
JScriptObjectImmutableIterator(Iterator obj,
Class returnClass)
|
|
JScriptObjectImmutableIterator(Map obj)
|
|
JScriptObjectImmutableIterator(org.mozilla.javascript.NativeArray obj)
Create a new ImmutableIterator |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Standard hasNext method |
Object |
next()
Standard next method |
void |
remove()
Makes sure that no one can remove any elements from the collection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JScriptObjectImmutableIterator(org.mozilla.javascript.NativeArray obj)
public JScriptObjectImmutableIterator(Iterator obj)
public JScriptObjectImmutableIterator(Iterator obj,
Class returnClass)
public JScriptObjectImmutableIterator(Map obj)
public JScriptObjectImmutableIterator(HashSet obj)
| Method Detail |
public boolean hasNext()
hasNext in interface Iterator
public Object next()
throws NoSuchElementException
next in interface IteratorNoSuchElementException
public void remove()
throws UnsupportedOperationException
remove in interface IteratorUnsupportedOperationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||