private void setValueAtPosition ( int pos , ByteArraySegment value ) { Preconditions . checkElementIndex ( pos , getCount ( ) , "pos must be non-negative and smaller than the number of items." ) ; Preconditions . checkArgument ( value . getLength ( ) == this . config . valueLength , "Given value has incorrect length." ) ; this . data . copyFrom ( value , pos * this . config . entryLength + this . config . keyLength , value . getLength ( ) ) ; }
Sets the Value at the given position .