Enum ISBNValidatorBuilder.HyphenationOption

java.lang.Object
java.lang.Enum<ISBNValidatorBuilder.HyphenationOption>
de.creativecouple.validation.isbn.ISBNValidatorBuilder.HyphenationOption
All Implemented Interfaces:
Serializable, Comparable<ISBNValidatorBuilder.HyphenationOption>, java.lang.constant.Constable
Enclosing class:
ISBNValidatorBuilder

public static enum ISBNValidatorBuilder.HyphenationOption extends Enum<ISBNValidatorBuilder.HyphenationOption>
Options for handling hyphenation in ISBN strings.
  • ANY matches all kinds of hyphenation, even wrong hyphenation.
  • CORRECT matches only well-hyphenated ISBNs with respect to prefix/group/publisher/title/checkdigit.
  • NONE matches only compact ISBN strings, without any hyphenation.
  • CORRECT_OR_NONE matches both well-hyphenated and compact ISBN strings.
  • Enum Constant Details

  • Method Details

    • values

      public static ISBNValidatorBuilder.HyphenationOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ISBNValidatorBuilder.HyphenationOption valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null