ibm_ilog.graphlayout.IIterator
Object » ibm_ilog.graphlayout.IIterator
dojo.require("ibm_ilog.graphlayout.IIterator");
This class is used in the ibm_graphlayout
API to return a set of values that can be enumerated.
You can use either the hasNext()
/next()
or hasMoreElements()
/nextElement()
pairs of methods,
as follows:
var constraints = layout.getConstraints(); // returns an IITerator while(constraints.hasNext()){ var constraint = constraints.next(); ... }
Method Summary
- hasMoreElements() returns Boolean Returns true if another value is available, or false if the enumeration is done.
- hasNext() returns Boolean Returns true if another value is available, or false if the enumeration is done.
- next() returns Object Returns the next value of the enumeration, or throws an Error if no value is available.
- nextElement() returns Object Returns the next value of the enumeration, or throws an Error if no value is available.
Methods
Returns Boolean
Returns true if another value is available, or false if the enumeration is done.
Returns Boolean
Returns true if another value is available, or false if the enumeration is done.
Returns Object
Returns the next value of the enumeration, or throws an Error if no value is available.