Modifier and Type | Class and Description |
---|---|
class |
RewardCard
This class encapsulates a special kind of credit card that is similar to
CreditCard except it offers reward points. |
Modifier and Type | Method and Description |
---|---|
CreditCard |
GlobalCredit.get(java.lang.String number)
Find the card whose number is passed.
|
CreditCard |
GlobalCredit.getFirst()
Deprecated.
As of version 4.0, replaced with
GlobalCredit.iterator() The base
invocation of the forward iterator. |
CreditCard |
GlobalCredit.getNext()
Deprecated.
As of version 4.0, replaced with
GlobalCredit.iterator() Follow
up invocation of the forward iterator. |
CreditCard |
GlobalCredit.remove(java.lang.String number)
Remove the card whose number is passed from
this GCC. |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<CreditCard> |
GlobalCredit.iterator()
Determine an Iterator over the credit cards in
this centre. |
Modifier and Type | Method and Description |
---|---|
boolean |
GlobalCredit.add(CreditCard card)
Attempt to add the passed credit card to
this GCC. |
boolean |
CreditCard.isSimilar(CreditCard other)
Test the similarity of two credit cards.
|