XPRMListElements
- java.lang.Object
-
- com.dashoptimization.XPRMListElements
-
- All Implemented Interfaces:
- java.util.Iterator
public class XPRMListElements extends java.lang.Object implements java.util.IteratorIterator to enumerate elements of a list.
-
-
Method Summary
Modifier and Type Method and Description booleanhasNext()Check whether all elements have been enumerated.java.lang.Objectnext()Next element.booleannextAsBoolean()Next element of a list of Booleans.intnextAsInteger()Next element of a list of integers.doublenextAsReal()Next element of a list of reals.java.lang.StringnextAsString()Next element of a list of strings.voidremove()Not supported.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Check whether all elements have been enumerated.- Specified by:
-
hasNextin interfacejava.util.Iterator - Returns:
-
trueif not all elements have been enumerated
-
next
public java.lang.Object next()
Next element.- Specified by:
-
nextin interfacejava.util.Iterator - Returns:
-
The next element as a
XPRMValue - Throws:
-
java.util.NoSuchElementException- If all elements have already been returned.
-
nextAsInteger
public int nextAsInteger()
Next element of a list of integers.- Returns:
- The next element as an integer
- Throws:
-
java.util.NoSuchElementException- If all elements have already been returned or the list is not a list of integers.
-
nextAsReal
public double nextAsReal()
Next element of a list of reals.- Returns:
- The next element as a real
- Throws:
-
java.util.NoSuchElementException- If all elements have already been returned or the list is not a list of reals.
-
nextAsString
public java.lang.String nextAsString()
Next element of a list of strings.- Returns:
- The next element as a string
- Throws:
-
java.util.NoSuchElementException- If all elements have already been returned or the list is not a list of strings.
-
nextAsBoolean
public boolean nextAsBoolean()
Next element of a list of Booleans.- Returns:
- The next element as a Boolean
- Throws:
-
java.util.NoSuchElementException- If all elements have already been returned or the list is not a list of Booleans.
-
remove
public void remove()
Not supported.- Specified by:
-
removein interfacejava.util.Iterator - Throws:
-
java.lang.UnsupportedOperationException- always thrown
-
-
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
