Initializing help system before first use

XPRMListElements

  • java.lang.Object
    • com.dashoptimization.XPRMListElements
  • All Implemented Interfaces:
    java.util.Iterator


    public class XPRMListElements
    extends java.lang.Object
    implements java.util.Iterator
    Iterator to enumerate elements of a list.
    • Method Summary

      Modifier and Type Method and Description
      boolean hasNext()
      Check whether all elements have been enumerated.
      java.lang.Object next()
      Next element.
      boolean nextAsBoolean()
      Next element of a list of Booleans.
      int nextAsInteger()
      Next element of a list of integers.
      double nextAsReal()
      Next element of a list of reals.
      java.lang.String nextAsString()
      Next element of a list of strings.
      void remove()
      Not supported.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Method Detail

      • hasNext

        public boolean hasNext()
        Check whether all elements have been enumerated.
        Specified by:
        hasNext in interface  java.util.Iterator
        Returns:
        true if not all elements have been enumerated
      • next

        public java.lang.Object next()
        Next element.
        Specified by:
        next in interface  java.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:
        remove in interface  java.util.Iterator
        Throws:
        java.lang.UnsupportedOperationException - always thrown