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