Class IntegerSequence.Combined

java.lang.Object
org.ejml.equation.IntegerSequence.Combined
All Implemented Interfaces:
IntegerSequence
Enclosing interface:
IntegerSequence

public static class IntegerSequence.Combined extends Object implements IntegerSequence
This is a sequence of sequences
  • Constructor Details

    • Combined

      public Combined(org.ejml.equation.TokenList.Token start, org.ejml.equation.TokenList.Token end)
  • Method Details

    • length

      public int length()
      Specified by:
      length in interface IntegerSequence
    • initialize

      public void initialize(int maxIndex)
      Description copied from interface: IntegerSequence
      Specifies the maximum index of the array. If the maximum index is not known then a value < 0 is passed in and an exception should be thrown if this information is required NOTE: This is length - 1
      Specified by:
      initialize in interface IntegerSequence
      Parameters:
      maxIndex - Largest possible value in the sequence. or < 0 if unknown
    • next

      public int next()
      Specified by:
      next in interface IntegerSequence
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface IntegerSequence
    • getType

      public IntegerSequence.Type getType()
      Specified by:
      getType in interface IntegerSequence
    • requiresMaxIndex

      public boolean requiresMaxIndex()
      Specified by:
      requiresMaxIndex in interface IntegerSequence