updateValue in Groovy Script


I am using these two lines of code to store the value of, for example, the sum of two custom fields in a third custom field. But I don’t quite understand these two lines of code. Can someone explain it to me? Where can I find it in the Groovy API?