Enum Class UArchitecture

java.lang.Object
java.lang.Enum<UArchitecture>
ushiosan.jvm.platform.UArchitecture
All Implemented Interfaces:
Serializable, Comparable<UArchitecture>, java.lang.constant.Constable

public enum UArchitecture extends Enum<UArchitecture>
Enumerated type for listing the processor architectures of the platform on which the JVM is running
  • Enum Constant Details

    • ARM

      public static final UArchitecture ARM
      ARM architecture (The new Apple devices run in this architecture)
    • X64

      public static final UArchitecture X64
      64-bit architecture
    • X86

      public static final UArchitecture X86
      32-bit architecture
    • UNKNOWN

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

    • values

      public static UArchitecture[] 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 UArchitecture 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
    • platformRawArch

      @NotNull public static @NotNull String platformRawArch()
      Gets the current platform architecture
      Returns:
      the current platform architecture
    • platformRunningArch

      @NotNull public static @NotNull UArchitecture platformRunningArch()
      Gets the current architecture where the JVM is running
      Returns:
      the architecture where the JVM runs or UNKNOWN if the architecture is not listed