XPRMRequirements
- java.lang.Object
-
- com.dashoptimization.XPRMRequirements
-
- All Implemented Interfaces:
- java.util.Iterator
public class XPRMRequirements extends java.lang.Object implements java.util.IteratorIterator to enumerate requirements of a model.
-
-
Method Summary
Modifier and Type Method and Description booleanhasNext()Check whether all requirements have been enumerated.java.lang.Objectnext()Next requirement.voidremove()Not supported.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Check whether all requirements have been enumerated.- Specified by:
-
hasNextin interfacejava.util.Iterator - Returns:
-
trueif not all requirements have been enumerated
-
next
public java.lang.Object next()
Next requirement. Depending on the structure of the object associated to the identifier, the value returned can be one of the following classes:XPRMArray,XPRMProcedure,XPRMReference,XPRMSet,XPRMList- Specified by:
-
nextin interfacejava.util.Iterator - Returns:
-
The next requirement as a
XPRMIdentifier - Throws:
-
java.util.NoSuchElementException- If all requirements have already been returned.
-
remove
public void remove()
Not supported.- Specified by:
-
removein interfacejava.util.Iterator - Throws:
-
java.lang.UnsupportedOperationException- always thrown
-
-
