[Webfunds-commits] java/webfunds/sox AccountId.java
Ian Grigg
iang@cypherpunks.ai
Tue, 27 Feb 2001 10:01:28 -0400 (AST)
iang 01/02/27 10:01:28
Modified: webfunds/sox AccountId.java
Log:
example(i) returns different sized byte array internally
Revision Changes Path
1.22 +10 -2 java/webfunds/sox/AccountId.java
Index: AccountId.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/AccountId.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- AccountId.java 2001/02/27 01:28:28 1.21
+++ AccountId.java 2001/02/27 14:01:27 1.22
@@ -1,4 +1,4 @@
-/* $Id: AccountId.java,v 1.21 2001/02/27 01:28:28 iang Exp $
+/* $Id: AccountId.java,v 1.22 2001/02/27 14:01:27 iang Exp $
*
* Copyright (c) Systemics Inc. 1995-2000 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -14,7 +14,7 @@
* This class represents an Account identifier,
* which is the standard way of referring to an account.
*
- * @version $Revision: 1.21 $
+ * @version $Revision: 1.22 $
*/
public class AccountId extends Id
{
@@ -81,6 +81,14 @@
public static AccountId example()
{
return new AccountId(ex()) ;
+ }
+
+ /**
+ * A life-like example for tests, with Length
+ */
+ public static AccountId example(int i)
+ {
+ return new AccountId(ex(i)) ;
}
public static void main(String[] args)