Enum Class NumSystem

java.lang.Object
java.lang.Enum<NumSystem>
edu.iu.jrsalata.NumSystem
All Implemented Interfaces:
Serializable, Comparable<NumSystem>, Constable

public enum NumSystem extends Enum<NumSystem>
The NumSystem enum represents different numerical systems. It provides three constants to specify the numerical system:
  • HEX - Hexadecimal system
  • DEC - Decimal system
  • BIN - Binary system
  • Enum Constant Details

    • HEX

      public static final NumSystem HEX
      Represents hexadecimal (base 16)
    • DEC

      public static final NumSystem DEC
      Represents decimal (base 10)
    • BIN

      public static final NumSystem BIN
      Represents binary (base 2)
  • Method Details

    • values

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