public class ISBN extends AbstractStandardNumber implements Comparable<ISBN>, StandardNumber
Constructor and Description |
---|
ISBN() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ISBN isbn) |
ISBN |
createChecksum(boolean createWithChecksum)
Indicate that a correct check sum should be computed.
|
ISBN |
ean(boolean preferEAN)
Prefer European Article Number (EAN, ISBN-13)
|
String |
format()
Get printable representation of this standard book number
|
String |
getCountryAndPublisherCode()
Get country and publisher code
|
boolean |
isEAN() |
boolean |
isValid()
Check for this ISBN number validity
|
ISBN |
normalize()
Normalize the value by removing all unwanted characters or
replacing characters with the ones required for verification.
|
String |
normalizedValue()
Get the normalized value of this standard book number
|
ISBN |
reset() |
ISBN |
set(CharSequence value)
Set ISBN value
|
String |
type()
Return the type of this standard number
|
ISBN |
verify()
Verify the number.
|
getTypedVariants
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypedVariants
public ISBN()
public String type()
StandardNumber
type
in interface StandardNumber
public ISBN set(CharSequence value)
set
in interface StandardNumber
value
- the ISBN candidate stringpublic ISBN createChecksum(boolean createWithChecksum)
StandardNumber
createChecksum
in interface StandardNumber
public int compareTo(ISBN isbn)
compareTo
in interface Comparable<ISBN>
public ISBN normalize()
StandardNumber
normalize
in interface StandardNumber
public boolean isValid() throws NumberFormatException
isValid
in interface StandardNumber
NumberFormatException
public ISBN verify() throws NumberFormatException
StandardNumber
verify
in interface StandardNumber
NumberFormatException
- if verification failedpublic String normalizedValue()
normalizedValue
in interface StandardNumber
public String format()
format
in interface StandardNumber
public ISBN reset()
reset
in interface StandardNumber
public boolean isEAN()
public String getCountryAndPublisherCode()
Copyright © 2013–2014. All rights reserved.