Package algs12
Class Transaction
java.lang.Object
algs12.Transaction
- All Implemented Interfaces:
Comparable<Transaction>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator
<Transaction> static final Comparator
<Transaction> static final Comparator
<Transaction> -
Constructor Summary
ConstructorDescriptionTransaction
(String transaction) Transaction
(String who, Date when, double amount) -
Method Summary
-
Field Details
-
WHO_ORDER
-
WHEN_ORDER
-
HOW_MUCH_ORDER
-
-
Constructor Details
-
Transaction
-
Transaction
-
-
Method Details
-
who
-
when
-
amount
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Transaction>
-
equals
-
hashCode
-
main
-