public class UKSortCodeRange extends Object implements Comparable<UKSortCodeRange>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UKSortCodeRange ukSortCodeRange)
Compares this UKSortCodeRange against the supplied ukSortCodeRange.
|
boolean |
equals(Object object)
Determines if this UKSortCodeRange is equal to the supplied object.
|
String |
getAlgorithm()
Gets the algorithm to verify a sort code in this sort code range.
|
int |
getAlgorithmException()
Gets the algorithm exception.
An algorithm exception is used to compute and verify the checksum in a different way. |
UKSortCodeRange |
getNestedSortCodeRange()
Gets the sort code range that is nested within this sort code range.
|
static UKSortCodeRange |
getSortCodeRange(String sortCode)
Gets the UKSortCodeRange corresponding to the supplied sortCode.
|
int[] |
getWeights()
Gets all the weights of this sort code range.
|
int |
hashCode()
Computes the hash code of this UKSortCodeRange.
|
static void |
main(String[] args)
Displays all sort code ranges.
|
String |
toString()
Creates a String representation of this UKSortCodeRange.
|
public static UKSortCodeRange getSortCodeRange(String sortCode)
sortCode
- The sort code to get the sort code range of.public String getAlgorithm()
public int getAlgorithmException()
public int[] getWeights()
public UKSortCodeRange getNestedSortCodeRange()
public int compareTo(UKSortCodeRange ukSortCodeRange)
compareTo
in interface Comparable<UKSortCodeRange>
ukSortCodeRange
- The UK sort code range to check.public boolean equals(Object object)
public int hashCode()
public String toString()
public static void main(String[] args)
args
- Not used.Copyright © 2008–2018. All rights reserved.