Enum Class NativeVariant

java.lang.Object
java.lang.Enum<NativeVariant>
electrostatic4j.snaploader.platform.util.NativeVariant
All Implemented Interfaces:
Serializable, Comparable<NativeVariant>, Constable

public enum NativeVariant extends Enum<NativeVariant>
Wraps objects for native variant constituents (OS + ARCH={CPU + INSTRUCT_SET} + VM).

Use the following list to build your platform predicates:

  • x86: 32-bit x86 architecture
  • x86_64: 64-bit x86 architecture, often referred to as amd64
  • amd64: Another name for x86_64
  • i386: Another designation for 32-bit x86 architecture
  • arm: ARM architecture
  • aarch64: 64-bit ARM architecture
  • sparc: SPARC architecture
  • sparcv9: 64-bit SPARC architecture
  • ppc: PowerPC architecture
  • ppc64: 64-bit PowerPC architecture
  • ppc64le: 64-bit PowerPC architecture, little-endian
  • s390: IBM System/390 architecture
  • s390x: 64-bit IBM System/390 architecture
  • riscv32: 32-bit RISC-V architecture
  • riscv64: 64-bit RISC-V architecture
  • Enum Constant Details

    • OS_NAME

      public static final NativeVariant OS_NAME
      The Operating system name property for this variant.
    • OS_ARCH

      public static final NativeVariant OS_ARCH
      The Operating system architecture.
    • JVM

      public static final NativeVariant JVM
      The current java virtual machine.
  • Method Details

    • values

      public static NativeVariant[] 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 NativeVariant 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
    • getProperty

      public String getProperty()
      Retrieves the data of this native variant property.
      Returns:
      the specified property object in a string format.