-
Notifications
You must be signed in to change notification settings - Fork 519
SortableAccount
codefriar edited this page Oct 6, 2021
·
8 revisions
Wrapper class around Account that provides an implementation of Comparable based on the ShippingCountry field and an 'in place' sort method.
compares accounts based on ShippingCountry
| Param | Description |
|---|---|
otherObject |
object used for comparision with this instance |
Type
Integer
Description
s 0 if objects are equal, 1 this object is "greater" than otherObject or 2 otherwise.
sorts a list of Account records using SortableAccount.compareTo
| Param | Description |
|---|---|
accounts |
list of account to sort |
Exception thrown when SortableAccount.compareTo fails