Enum SwiftPatternCharacterRepresentation

java.lang.Object
java.lang.Enum<SwiftPatternCharacterRepresentation>
fr.marcwrobel.jbanking.swift.SwiftPatternCharacterRepresentation
All Implemented Interfaces:
Serializable, Comparable<SwiftPatternCharacterRepresentation>, java.lang.constant.Constable

public enum SwiftPatternCharacterRepresentation extends Enum<SwiftPatternCharacterRepresentation>
The character representations in a SwiftPattern.
Since:
4.0.0
  • Enum Constant Details

  • Method Details

    • values

      public static SwiftPatternCharacterRepresentation[] 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 SwiftPatternCharacterRepresentation 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
    • from

      public static Optional<SwiftPatternCharacterRepresentation> from(char qualifier)
      Get the corresponding representation for the given qualifier.
      Parameters:
      qualifier - a char
      Returns:
      a non-null optional SwiftPatternCharacterRepresentation
    • qualifier

      public char qualifier()
      Returns this character representation qualifier.
      Returns:
      a single character
    • alphabet

      public String alphabet()
      Returns this character representation alphabet, i.e. a String composed of all the characters in the representation.
      Returns:
      a non-null string
    • regex

      public String regex()
      Returns this character representation regular expression.
      Returns:
      a non-null string
    • has

      public boolean has(char c)
      Checks whether the given character belongs to this character representation.
      Parameters:
      c - the char to test
      Returns:
      true if the given character belongs to this character representation, false otherwise