public class Rounder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Rounder.RoundingPolicy |
Constructor and Description |
---|
Rounder(Rounder.RoundingPolicy roundPolicy,
int decimalPlaces) |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
apply(BigDecimal value) |
BigInteger |
apply(BigInteger value) |
double |
apply(double value) |
int |
getDecimalPlaces() |
Rounder.RoundingPolicy |
getRoundPolicy() |
Rounder |
setDecimalPlaces(int decimalPlaces) |
Rounder |
setRoundPolicy(Rounder.RoundingPolicy roundPolicy) |
String |
toString() |
public Rounder(Rounder.RoundingPolicy roundPolicy, int decimalPlaces)
public int getDecimalPlaces()
public Rounder setDecimalPlaces(int decimalPlaces)
public Rounder.RoundingPolicy getRoundPolicy()
public Rounder setRoundPolicy(Rounder.RoundingPolicy roundPolicy)
public double apply(double value)
public BigDecimal apply(BigDecimal value)
public BigInteger apply(BigInteger value)
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.