java.lang.Object
java.lang.Enum<Arch>
com.github.ushiosan23.jvm.system.os.Arch
All Implemented Interfaces:
Serializable, Comparable<Arch>, java.lang.constant.Constable

public enum Arch extends Enum<Arch>
  • Enum Constant Details

    • X64

      public static final Arch X64
      64-bit architectures
    • X86

      public static final Arch X86
      32-bit architecture
    • ARM

      public static final Arch ARM
      ARM architecture
    • UNKNOWN

      public static final Arch UNKNOWN
      Unknown architecture. Used to represent an error
  • Method Details

    • values

      public static Arch[] 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 Arch 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
    • getCurrent

      public static Arch getCurrent()
      Returns the current architecture of the processor. This object does not return any specifications, it only defines what type of architecture it is (x86, x64, ARM).
      Returns:
      Returns the current architecture of the device processor
      See Also:
    • toString

      @NotNull public @NotNull String toString()
      Object string representation
      Overrides:
      toString in class Enum<Arch>
      Returns:
      Object string representation