[Webfunds-commits] java/webfunds/ricardian Contract.java
Ian Grigg
iang@cypherpunks.ai
Sat, 17 Mar 2001 23:13:45 -0400 (AST)
iang 01/03/17 23:13:45
Modified: webfunds/ricardian Contract.java
Log:
fixed comments
Revision Changes Path
1.51 +3 -10 java/webfunds/ricardian/Contract.java
Index: Contract.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/Contract.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- Contract.java 2001/03/17 20:27:59 1.50
+++ Contract.java 2001/03/18 03:13:44 1.51
@@ -1,4 +1,4 @@
-/* $Id: Contract.java,v 1.50 2001/03/17 20:27:59 iang Exp $
+/* $Id: Contract.java,v 1.51 2001/03/18 03:13:44 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -243,12 +243,6 @@
* Get a DecimalFormat object suitable for this Contract.
* If no call to setDecimalFormat() has been made,
* one is initialised from getDecimalFormatPattern().
- *
- * Use like this:
- * import java.text.DecimalFormat;
- * DecimalFormat df = con.getDecimalFormat();
- * double amount = con.getUnitsOfAccount((long)qty),
- * String val = df.format(amount);
*/
public DecimalFormat getDecimalFormat()
{
@@ -261,10 +255,9 @@
/**
* Get a printable string in unit of account.
- * If no call to setDecimalFormat() has been made,
- * one is initialised from getDecimalFormatPattern().
+ * Uses the DecimalFormat from getDecimalFormat(),
+ * and converts the long qty with getUnitsOfAccount().
*
- * Use like this:
*/
public String getPrintableAmount(long qty)
{