public interface StandardNumber
Modifier and Type | Method and Description |
---|---|
StandardNumber |
createChecksum(boolean withChecksum)
Indicate that a correct check sum should be computed.
|
String |
format()
Return a formatted value of this standard number
This is best for human-readable representation, but is
not necessarily a format for computation.
|
Collection<String> |
getTypedVariants() |
boolean |
isValid()
Check this number for validity.
|
StandardNumber |
normalize()
Normalize the value by removing all unwanted characters or
replacing characters with the ones required for verification.
|
String |
normalizedValue()
Return normalized value of this standard number.
|
StandardNumber |
reset() |
StandardNumber |
set(CharSequence value)
Set the input value of this standard number.
|
String |
type()
Return the type of this standard number
|
StandardNumber |
verify()
Verify the number.
|
StandardNumber set(CharSequence value)
value
- the raw input valueStandardNumber normalize()
boolean isValid()
StandardNumber verify() throws NumberFormatException
NumberFormatException
- if verification failedStandardNumber createChecksum(boolean withChecksum)
String normalizedValue()
String format()
StandardNumber reset()
Collection<String> getTypedVariants()
Copyright © 2013–2014. All rights reserved.