|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.RevealedNotesList
This class, which represents a list of RevealedNote objects, is used by buyers to reveal at the bank the secret information used to build all the notes.
RevealedNote
Constructor Summary | |
RevealedNotesList(FullNotesList fullNotesList,
BankChoice bankChoice)
Creates a revealed notes list from the information found in a FullNotesList object. |
|
RevealedNotesList(java.lang.String value)
Re-build the object from it's string representation. |
Method Summary | |
RevealedNote |
get(int index)
Gets the revealed note designed by the specific index. |
java.lang.String |
getAmount()
Returns the amount of the notes if they are all the same, "-1" otherwise. |
static RevealedNotesList |
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 |
size()
Returns the number of notes. |
java.lang.String |
toString()
Returns a string representation of this RevealedNotesList. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RevealedNotesList(FullNotesList fullNotesList, BankChoice bankChoice)
fullNotesList
- the FullNotesListbankChoice
- the bank choicepublic RevealedNotesList(java.lang.String value)
value
- the string representation of the objectMethod Detail |
public void save(java.lang.String filename)
filename
- the filenamepublic int size()
public RevealedNote get(int index)
public java.lang.String getAmount()
public static RevealedNotesList load(java.lang.String filename)
filename
- the filenamepublic 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 |