webfunds.token
Class Log

java.lang.Object
  |
  +--webfunds.token.Log

public final class Log
extends java.lang.Object


Constructor Summary
protected Log()
           
 
Method Summary
static long log2qty(int log)
           
static void main(java.lang.String[] args)
           
static int[] qty2coins(long qty)
           
static int qty2log(long qty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

protected Log()
Method Detail

log2qty

public static long log2qty(int log)
Returns:
the quantity from a coin size, which is always logarithmic, if outside range, -1 is returned.

qty2log

public static int qty2log(long qty)
Returns:
a single largest coin size from a quantity.

qty2coins

public static int[] qty2coins(long qty)
Returns:
an array representing the coin sizes required for this quantity

main

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