Package hlcd.enums

Enum Class Style

All Implemented Interfaces:
Serializable, Comparable<Style>, Constable

public enum Style extends Enum<Style>
An enum for choosing how should a matrix in the program be displayed. We can use the decimal representation (\(0_{10}\), \(1_{10}\), \(2_{10}\) and \(3_{10}\)) or binary representation (\(00_{2}\), \(01_{2}\), \(10_{2}\) and \(11_{2}\)) or quaternary representation (\(0_{4}\), \(1_{4}\), \(\omega_{4}\) and \(\overline{\omega}_{4}\)). Lastly, the \(\LaTeX\) representation writes styles the digits as: 0, 1, \omega and \overline{\omega}, respectively.
Since:
February 2nd, 2022
Version:
1.0
Author:
Maysara Al Jumaily
  • Enum Constant Details

    • DECIMAL

      public static final Style DECIMAL
      The decimal presentation (\(0_{10}\), \(1_{10}\), \(2_{10}\) and \(3_{10}\)).
    • BINARY

      public static final Style BINARY
      The binary presentation (\(00_{2}\), \(01_{2}\), \(10_{2}\) and \(11_{2}\)).
    • QUATERNARY

      public static final Style QUATERNARY
      The quaternary presentation (\(0_{4}\), \(1_{4}\), \(\omega_{4}\) and \(\overline{\omega}_{4}\)).
    • LATEX

      public static final Style LATEX
      The \(\LaTeX\) representation 0, 1, \omega and \overline{\omega}).
  • Method Details

    • values

      public static Style[] 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 Style 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