uk.ydubey.formatter.numtoword
Class NumberFormatter

java.lang.Object
  extended by uk.ydubey.formatter.numtoword.NumberFormatter
Direct Known Subclasses:
TwoDigitNumberInWordsFormatter

public abstract class NumberFormatter
extends Object


Constructor Summary
NumberFormatter()
           
 
Method Summary
 String format(int number)
           
abstract  int getLimit()
           
protected static String join(List<String> items)
           
protected abstract  String parseAndFormat(int number)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormatter

public NumberFormatter()
Method Detail

getLimit

public abstract int getLimit()

format

public final String format(int number)

join

protected static String join(List<String> items)

parseAndFormat

protected abstract String parseAndFormat(int number)


Copyright © 2012. All Rights Reserved.