Modifier and Type | Field and Description |
---|---|
static String |
SORT_CODE_INVALID_LENGTH_MSG
Sort code has invalid length message.
|
static int |
SORT_CODE_LENGTH
The length of a sort code field.
|
static String |
SORT_CODE_NOT_NUMERIC_MSG
Sort code is not numeric message.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkSortCodeIsValid(String sortCode)
Determines whether the supplied sortCode is a valid sort code.
|
static String |
getBank(String sortCode)
Gets the bank corresponding to the supplied sortCode.
|
static void |
main(String[] args)
Displays all sort codes.
|
String |
toString()
Creates a String representation of this UKSortCode.
|
public static final int SORT_CODE_LENGTH
public static final String SORT_CODE_INVALID_LENGTH_MSG
public static final String SORT_CODE_NOT_NUMERIC_MSG
public static String getBank(String sortCode)
sortCode
- The sort code to get the bank of.public static void checkSortCodeIsValid(String sortCode) throws InvalidArgumentException
sortCode
- The sort code.InvalidArgumentException
- When the supplied sort code/bank account number combination is invalid.public String toString()
public static void main(String[] args)
args
- Not used.Copyright © 2008–2018. All rights reserved.