code: public int get(long idx) {
          if (idx < 0 || idx >= size) {
              return 0;
          }
          return elements[SafeCast.safeLongToInt(idx + start)];
      }
docs: Gets the idx'th entry in the vector.
  @param idx The index of the element to get.
  @return The value of the element to get.