|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.plausj.bank.german.AccountCode
public class AccountCode
This is a german bank account code
Field Summary | |
---|---|
static int |
ACCOUNT_CODE_MAX_LENGTH
The maximum length for an account code |
static int |
ACCOUNT_CODE_MIN_LENGTH
The minimal length for an account code |
Constructor Summary | |
---|---|
AccountCode(java.lang.String accountCode)
The default-CTOR for the account code object |
Method Summary | |
---|---|
java.lang.String |
getAccountCode()
Returns the account code as padded string |
int[] |
getAsIntArray()
Returns an integer array containing the digits of the account code |
long |
getAsLong()
|
int |
getDigitAtPos(int pos)
Returns the digit of the account code on the specified position |
int |
getRealLength()
|
boolean |
matchesCheckDigit(CheckDigit cd)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ACCOUNT_CODE_MIN_LENGTH
public static final int ACCOUNT_CODE_MAX_LENGTH
Constructor Detail |
---|
public AccountCode(java.lang.String accountCode) throws java.lang.IllegalArgumentException
accountCode
- The account code this object represents
java.lang.IllegalArgumentException
- Thrown if the supplied account code is invalidMethod Detail |
---|
public java.lang.String getAccountCode()
public int[] getAsIntArray()
public long getAsLong()
public int getDigitAtPos(int pos)
pos
- the position to return the digit for
java.lang.IndexOutOfBoundsException
- Thrown if the pos exceeds the range of the accountCodepublic boolean matchesCheckDigit(CheckDigit cd)
public int getRealLength()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |