Enum ProcessorArchitecture

  • All Implemented Interfaces:
    Serializable, Comparable<ProcessorArchitecture>

    public enum ProcessorArchitecture
    extends Enum<ProcessorArchitecture>
    The processor architecture of the this system.

    Note that the memory address size might be different than the actual hardware architecture, due to the installed OS (32bit OS) or when installing a 32 bit JRE in a 64 bit OS.

    • Enum Constant Detail

      • PPC64_LE

        public static final ProcessorArchitecture PPC64_LE
        The little-endian mode of the 64 bit Power-PC architecture.
      • UNKNOWN

        public static final ProcessorArchitecture UNKNOWN
        Unknown architecture, could not be determined. This one conservatively assumes 32 bit, because 64 bit platforms typically support 32 bit memory spaces.
    • Method Detail

      • values

        public static ProcessorArchitecture[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ProcessorArchitecture c : ProcessorArchitecture.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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

        public String getArchitectureName()
        Gets the primary name of the processor architecture. The primary name would for example be "x86" or "amd64".
      • getAlternativeNames

        public List<String> getAlternativeNames()
        Gets the alternative names for the processor architecture. Alternative names are for example "i586" for "x86", or "x86_64" for "amd64".
      • getProcessorArchitecture

        public static ProcessorArchitecture getProcessorArchitecture()
        Gets the ProcessorArchitecture of the system running this process.
      • getMemoryAddressSize

        public static ProcessorArchitecture.MemoryAddressSize getMemoryAddressSize()
        Gets the MemorySize of the ProcessorArchitecture of this process.

        Note that the memory address size might be different than the actual hardware architecture, due to the installed OS (32bit OS) or when installing a 32 bit JRE in a 64 bit OS.