public class ISTC extends AbstractStandardNumber implements Comparable<ISTC>, StandardNumber
Constructor and Description |
---|
ISTC() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ISTC istc) |
ISTC |
createChecksum(boolean createWithChecksum)
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.
|
boolean |
isValid()
Check this number for validity.
|
ISTC |
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.
|
ISTC |
reset() |
ISTC |
set(CharSequence value)
Set the input value of this standard number.
|
String |
type()
Return the type of this standard number
|
ISTC |
verify()
Verify the number.
|
getTypedVariants
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypedVariants
public ISTC()
public String type()
StandardNumber
type
in interface StandardNumber
public int compareTo(ISTC istc)
compareTo
in interface Comparable<ISTC>
public ISTC set(CharSequence value)
StandardNumber
set
in interface StandardNumber
value
- the raw input valuepublic ISTC createChecksum(boolean createWithChecksum)
StandardNumber
createChecksum
in interface StandardNumber
public ISTC normalize()
StandardNumber
normalize
in interface StandardNumber
public boolean isValid()
StandardNumber
isValid
in interface StandardNumber
public ISTC verify() throws NumberFormatException
StandardNumber
verify
in interface StandardNumber
NumberFormatException
- if verification failedpublic String normalizedValue()
StandardNumber
normalizedValue
in interface StandardNumber
public String format()
StandardNumber
format
in interface StandardNumber
public ISTC reset()
reset
in interface StandardNumber
Copyright © 2013–2014. All rights reserved.