Enum Class Platform.Architecture

java.lang.Object
java.lang.Enum<Platform.Architecture>
dev.prozilla.pine.common.system.Platform.Architecture
All Implemented Interfaces:
Serializable, Comparable<Platform.Architecture>, Constable
Enclosing class:
Platform

public static enum Platform.Architecture extends Enum<Platform.Architecture>
Represents the architectures supported by Pine.

This is a wrapper for Platform.Architecture

  • Enum Constant Details

  • Method Details

    • values

      public static Platform.Architecture[] 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 Platform.Architecture 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
    • isCurrent

      public boolean isCurrent()
      Checks if this is the current architecture.
      Returns:
      true if this is the current architecture.
    • is64Bit

      public static boolean is64Bit()
      Checks if the current architecture is 64-bit.
      Returns:
      true if the current architecture is 64-bit.
    • isArm

      public static boolean isArm()
      Checks if the current architecture is Arm-based.
      Returns:
      true if the current architecture is Arm-based.
    • isSupported

      public static boolean isSupported()
      Checks if the current architecture is supported by Pine.
      Returns:
      true if the current architecture is supported by Pine.