gw.lang.enhancements.CoreArrayOfLongsEnhancement.gsx Maven / Gradle / Ivy
package gw.lang.enhancements
uses java.lang.Long
/*
* Copyright 2014 Guidewire Software, Inc.
*/
enhancement CoreArrayOfLongsEnhancement : Long[] {
function sum() : Long {
var sum = 0 as long
for (elt in this) {
sum += elt
}
return sum
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy