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

gw.util.science.Capacitance.gs Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.util.science

uses gw.util.science.Charge //to prevent conflict with Guidewire's entity.Charge type
uses gw.util.Rational

uses java.math.RoundingMode
uses java.math.MathContext

final class Capacitance extends AbstractMeasure {
  construct( value : Rational, unit: CapacitanceUnit, displayUnit: CapacitanceUnit ) {
    super( value, unit, displayUnit, CapacitanceUnit.BASE )
  }
  construct( value : Rational, unit: CapacitanceUnit ) {
    this( value, unit, unit )
  }

  function multiply( potential: Potential ) : Charge {
    return new Charge( toBaseNumber() * potential.toBaseNumber(), ChargeUnit.BASE, Unit.ChargeUnit )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy