-
Notifications
You must be signed in to change notification settings - Fork 460
SortableAccount
pozil edited this page Oct 4, 2023
·
8 revisions
Wrapper class around Account that provides an implementation of Comparable based on the ShippingCountry field and an 'in place' sort method.
Implemented types
compares accounts based on ShippingCountry
Param | Description |
---|---|
otherObject |
object used for comparision with this instance |
Type | Description |
---|---|
Integer | s 0 if objects are equal, 1 this object is "greater" than otherObject or 2 otherwise. |
Exception | Description |
---|---|
Throws |
SortException if an error occurs while sorting the list. For example, when comparing with an incompatible object type. |
sorts a list of Account records using SortableAccount.compareTo
Param | Description |
---|---|
accounts |
list of account to sort |
Exception thrown when SortableAccount.compareTo fails
Inheritance
SortException