Class DataStorage.AbstractIterator

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractIterator​(int mode, long startPosition, long endPosition)
      Construct a new iterator.
    • Method Summary

      Modifier and Type Method Description
      protected void checkGet()
      Checks if any of the get() methods can be called.
      protected void checkLength()
      Checks if the iterator is at the end yet.
      protected void checkSet()
      Checks if any of the set() methods can be called.
      double getDouble()
      Gets the current element as a double.
      float getFloat()
      Gets the current element as a float.
      protected int getIncrement()
      Returns the increment of the iterator.
      int getInt()
      Gets the current element as an int.
      protected long getLength()
      Returns the remaining length in the iterator.
      long getLong()
      Gets the current element as a long.
      protected int getMode()
      Returns the mode in which the iterator was created.
      protected long getPosition()
      Returns the current position of the iterator.
      boolean hasNext()
      Check if next() can be called without going past the end of the sequence.
      void next()
      Advances the position in the stream by one element.
      void setDouble​(double value)
      Sets the current element as a double.
      void setFloat​(float value)
      Sets the current element as a float.
      void setInt​(int value)
      Sets the current element as an int.
      void setLong​(long value)
      Sets the current element as a long.