Class AllRange

  • All Implemented Interfaces:
    Range

    public class AllRange
    extends java.lang.Object
    implements Range
    A range over all available indices. Can be used to address whole columns or rows. Like the ":" index in matlab. Don't forget to call init() before using this range.
    • Constructor Summary

      Constructors 
      Constructor Description
      AllRange()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMore()
      More indices available?
      int index()
      Consecutive numbering of current index.
      void init​(int l, int u)
      Initialize Range to available indices
      int length()
      Total number of indices.
      void next()
      Increase counter.
      java.lang.String toString()  
      int value()
      Get current index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • init

        public void init​(int l,
                         int u)
        Description copied from interface: Range
        Initialize Range to available indices
        Specified by:
        init in interface Range
      • length

        public int length()
        Description copied from interface: Range
        Total number of indices.
        Specified by:
        length in interface Range
      • value

        public int value()
        Description copied from interface: Range
        Get current index.
        Specified by:
        value in interface Range
      • index

        public int index()
        Description copied from interface: Range
        Consecutive numbering of current index.
        Specified by:
        index in interface Range
      • next

        public void next()
        Description copied from interface: Range
        Increase counter.
        Specified by:
        next in interface Range
      • hasMore

        public boolean hasMore()
        Description copied from interface: Range
        More indices available?
        Specified by:
        hasMore in interface Range
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object