Code example for BigDecimal

Methods: signum

0
	 * @throws EstimatorException 
	 */ 
	private void setRate( BigDecimal rate ) throws EstimatorException {
		// sanity checks 
		 
		if ( rate.signum() <= 0 ) {
			throw new EstimatorException ( "Feed in rate cannot be equal to, or under, $0.00" ); 
		} 
		 
		this.feedInRate = rate;
	} 
	 
	 
	public BigDecimal getFeedInRate() {
		return feedInRate;
	} 
	 
	@Override 
	public BigDecimal getRevenueMultiplier(int year) {
		return feedInRate;
	}