webfunds.ricardian
Class Support

java.lang.Object
  |
  +--webfunds.ricardian.Support

public class Support
extends java.lang.Object

General static support for Contracts.


Field Summary
static java.lang.String[] bigStrings
           
 
Constructor Summary
Support()
           
 
Method Summary
static java.lang.String getMinorWords(int power)
           
static java.lang.String getWords(int power)
          return words like "tens of thousands" ...
static void main(java.lang.String[] args)
           
static java.lang.String power2DecimalFormatPattern(int p)
           
static java.lang.String repeats(int i, java.lang.String s)
          Handy call to return a string with a number of repeats.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bigStrings

public static final java.lang.String[] bigStrings
Constructor Detail

Support

public Support()
Method Detail

getMinorWords

public static java.lang.String getMinorWords(int power)

getWords

public static java.lang.String getWords(int power)
return words like "tens of thousands" ... only works for powers less than 0.

repeats

public static java.lang.String repeats(int i,
                                       java.lang.String s)
Handy call to return a string with a number of repeats.

power2DecimalFormatPattern

public static java.lang.String power2DecimalFormatPattern(int p)
Returns:
a suitable DecimalFactor pattern for the power

main

public static void main(java.lang.String[] args)
                 throws ContractException