original_string: public function resize($size, $value = null){
  		
  		if($this->_ReadOnly){
  			throw new ReadOnlyException(\get_called_class() . ' is read only');
  		}
  		
  		if(!\is_int($size)){
  			throw new \InvalidArgumentException('$size is not an int');
  		}
  		
  		if($size < 0){
  			throw new \OutOfBoundsException('$size cannot be less than 0');
  		}
  		
  		$len = $this->count();
  		
  		if($size > $len){
  			$this->_Arr = \array_pad($this->_Arr, $size, $value);
  		}
  		else if($size < $len){
  			$this->_Arr = \array_slice($this->_Arr, 0, $size, false);
  		}
  		
  		return $this;
  		
  	}
code: public function resize($size, $value = null){
  		
  		if($this->_ReadOnly){
  			throw new ReadOnlyException(\get_called_class() . ' is read only');
  		}
  		
  		if(!\is_int($size)){
  			throw new \InvalidArgumentException('$size is not an int');
  		}
  		
  		if($size < 0){
  			throw new \OutOfBoundsException('$size cannot be less than 0');
  		}
  		
  		$len = $this->count();
  		
  		if($size > $len){
  			$this->_Arr = \array_pad($this->_Arr, $size, $value);
  		}
  		else if($size < $len){
  			$this->_Arr = \array_slice($this->_Arr, 0, $size, false);
  		}
  		
  		return $this;
  		
  	}
code_tokens: public function resize ( $ size , $ value = null ) { if ( $ this -> _ReadOnly ) { throw new ReadOnlyException ( \ get_called_class ( ) . ' is read only' ) ; } if ( ! \ is_int ( $ size ) ) { throw new \ InvalidArgumentException ( '$size is not an int' ) ; } if ( $ size < 0 ) { throw new \ OutOfBoundsException ( '$size cannot be less than 0' ) ; } $ len = $ this -> count ( ) ; if ( $ size > $ len ) { $ this -> _Arr = \ array_pad ( $ this -> _Arr , $ size , $ value ) ; } else if ( $ size < $ len ) { $ this -> _Arr = \ array_slice ( $ this -> _Arr , 0 , $ size , false ) ; } return $ this ; }
docstring: Resizes this list to a given size. Expanding the list will
  pad it with a value. Contracting the list cuts off extraneous
  values.
  @param int $size
  @param mixed $value
  @return \Cola\ArrayList
  @throws ReadOnlyException
  @throws \InvalidArgumentException
  @throws \OutOfBoundsException
docstring_tokens: Resizes this list to a given size . Expanding the list will pad it with a value . Contracting the list cuts off extraneous values .