public void set(int i, U value) {
    ensureCapacity((i + 1) * unitSize);
    ByteBuffer view = getView(i);
    try {
      factory.write(view, value);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
public void set ( int i , U value ) { ensureCapacity ( ( i + 1 ) * unitSize ) ; ByteBuffer view = getView ( i ) ; try { factory . write ( view , value ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
Set.

@param i     the
@param value the value