code: @Override
      public double getDouble(int index) {
          index += startOffset;
          if (index >= data.length) {
              index -= data.length;
          }
          return data[index];
      }
docs: {@inheritDoc }