Package algs12
Class Transaction
java.lang.Object
algs12.Transaction
- All Implemented Interfaces:
Comparable<Transaction>
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
static final Comparator
<Transaction> private final Date
static final Comparator
<Transaction> private final String
static final Comparator
<Transaction> -
Constructor Summary
ConstructorDescriptionTransaction
(String transaction) Transaction
(String who, Date when, double amount) -
Method Summary
-
Field Details
-
who
-
when
-
amount
-
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
-