Enum Class BaseDirection

java.lang.Object
java.lang.Enum<BaseDirection>
com.mta.tehreer.unicode.BaseDirection
All Implemented Interfaces:
Serializable, Comparable<BaseDirection>, java.lang.constant.Constable

public enum BaseDirection extends Enum<BaseDirection>
Specifies the base direction of a paragraph.
  • Enum Constant Details

    • LEFT_TO_RIGHT

      public static final BaseDirection LEFT_TO_RIGHT
      Base direction is left-to-right.
    • RIGHT_TO_LEFT

      public static final BaseDirection RIGHT_TO_LEFT
      Base direction is right-to-left.
    • DEFAULT_LEFT_TO_RIGHT

      public static final BaseDirection DEFAULT_LEFT_TO_RIGHT
      Base direction depends on the first strong directional character of the paragraph according to Unicode Bidirectional Algorithm. If no strong directional character is present, the base direction is left-to-right.
    • DEFAULT_RIGHT_TO_LEFT

      public static final BaseDirection DEFAULT_RIGHT_TO_LEFT
      Base direction depends on the first strong directional character of the paragraph according to Unicode Bidirectional Algorithm. If no strong directional character is present, the base direction is right-to-left.
  • Method Details

    • values

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

      public static BaseDirection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null