public class ARK extends AbstractStandardNumber implements Comparable<ARK>
Constructor and Description |
---|
ARK() |
Modifier and Type | Method and Description |
---|---|
URI |
asURI() |
int |
compareTo(ARK ark) |
ARK |
createChecksum(boolean checksum)
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.
|
ARK |
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.
|
ARK |
reset() |
ARK |
set(CharSequence value)
Set the input value of this standard number.
|
String |
type()
Return the type of this standard number
|
ARK |
verify()
No verification.
|
getTypedVariants
public ARK()
public String type()
StandardNumber
type
in interface StandardNumber
public int compareTo(ARK ark)
compareTo
in interface Comparable<ARK>
public ARK set(CharSequence value)
StandardNumber
set
in interface StandardNumber
value
- the raw input valuepublic ARK createChecksum(boolean checksum)
StandardNumber
createChecksum
in interface StandardNumber
public ARK normalize()
StandardNumber
normalize
in interface StandardNumber
public boolean isValid()
StandardNumber
isValid
in interface StandardNumber
public ARK verify() throws NumberFormatException
verify
in interface StandardNumber
NumberFormatException
public String normalizedValue()
StandardNumber
normalizedValue
in interface StandardNumber
public String format()
StandardNumber
format
in interface StandardNumber
public ARK reset()
reset
in interface StandardNumber
Copyright © 2013–2014. All rights reserved.