public E setById ( final int id , final E element ) { VListKey < K > key = new VListKey < K > ( _key , id ) ; UpdateElementById < K , E > updateElementAction = new UpdateElementById < K , E > ( key , element ) ; if ( ! _storeClient . applyUpdate ( updateElementAction ) ) throw new ObsoleteVersionException ( "update failed" ) ; return updateElementAction . getResult ( ) ; }
Put the given value to the appropriate id in the stack using the version of the current list node identified by that id .