com.northconcepts.datapipeline.transform.format
Class Rounder

java.lang.Object
  extended by com.northconcepts.datapipeline.transform.format.Rounder

public class Rounder
extends Object


Nested Class Summary
static class Rounder.RoundingPolicy
           
 
Constructor Summary
Rounder(Rounder.RoundingPolicy roundPolicy, int decimalPlaces)
           
 
Method Summary
 double apply(double value)
           
 int getDecimalPlaces()
           
 Rounder.RoundingPolicy getRoundPolicy()
           
 Rounder setDecimalPlaces(int decimalPlaces)
           
 Rounder setRoundPolicy(Rounder.RoundingPolicy roundPolicy)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rounder

public Rounder(Rounder.RoundingPolicy roundPolicy,
               int decimalPlaces)
Method Detail

getDecimalPlaces

public int getDecimalPlaces()

setDecimalPlaces

public Rounder setDecimalPlaces(int decimalPlaces)

getRoundPolicy

public Rounder.RoundingPolicy getRoundPolicy()

setRoundPolicy

public Rounder setRoundPolicy(Rounder.RoundingPolicy roundPolicy)

apply

public double apply(double value)

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2007-2012 North Concepts Inc. All Rights Reserved.