All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.enhancements.CoreIterableOfBigDecimalsEnhancement.gsx Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.lang.enhancements
uses java.math.BigDecimal

/*
 *  Copyright 2014 Guidewire Software, Inc.
 */
enhancement CoreIterableOfBigDecimalsEnhancement : java.lang.Iterable {
  function sum() : BigDecimal {
    var sum = BigDecimal.ZERO
    for (elt in this) {
      sum += elt  
    }
    return sum
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy