[Webfunds-commits] java/webfunds/client/sox StateReceipt.java
Jeroen C. van Gelderen
gelderen@cypherpunks.ai
Thu, 6 Jul 2000 13:09:26 -0400 (AST)
gelderen 00/07/06 13:09:26
Modified: webfunds/client/sox StateReceipt.java
Log:
Add getState() method so that we can switch {} on the state.
Revision Changes Path
1.2 +3 -1 java/webfunds/client/sox/StateReceipt.java
Index: StateReceipt.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/sox/StateReceipt.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StateReceipt.java 2000/05/28 02:59:56 1.1
+++ StateReceipt.java 2000/07/06 17:09:25 1.2
@@ -1,5 +1,5 @@
/*
- * $Id: StateReceipt.java,v 1.1 2000/05/28 02:59:56 iang Exp $
+ * $Id: StateReceipt.java,v 1.2 2000/07/06 17:09:25 gelderen Exp $
*
* Copyright (c) 2000 Systemics Inc on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -32,6 +32,8 @@
CANCELLED = 2,
SUCCEEDED = 3;
protected int state;
+
+ public int getState() { return this.state; }
public boolean isPending() { return (state == PENDING); }
public boolean isCancelling() { return (state == CANCELLING); }