code: @Override
    public KType get(int index) {
      assert (index >= 0 && index < size()) : "Index " + index + " out of bounds [" + 0 + ", " + size() + ").";
  
      return Intrinsics.<KType> cast(buffer[index]);
    }
docs: {@inheritDoc}