|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.BankChoice
Represents a number chosen by the bank, with n = [0..nbEnveloppe[. The client will have to reveal all information used to build the notes, except for the note n (which will be blindly signed and returned).
Constructor Summary | |
BankChoice(int nbEnvelopes)
Chooses randomly a number which represents the choice of the bank. |
|
BankChoice(java.lang.String value)
Re-build the object from it's string representation. |
Method Summary | |
static BankChoice |
load(java.lang.String filename)
Re-build the object from it's file representation. |
void |
save(java.lang.String filename)
Saves this object into it's file representation. |
int |
toInt()
Returns an int representation of this BankChoice. |
java.lang.String |
toString()
Returns a string representation of this BankChoice. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BankChoice(int nbEnvelopes)
public BankChoice(java.lang.String value)
value
- the string representation of the objectMethod Detail |
public static BankChoice load(java.lang.String filename)
filename
- the filenamepublic void save(java.lang.String filename)
filename
- the filenamepublic int toInt()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |