Enum Class X86Feature

java.lang.Object
java.lang.Enum<X86Feature>
cpufeatures.x86.X86Feature
All Implemented Interfaces:
Serializable, Comparable<X86Feature>, Constable

public enum X86Feature extends Enum<X86Feature>
Feature that can be present on an X86 processor.
  • Enum Constant Details

  • Method Details

    • values

      public static X86Feature[] 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 X86Feature 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
    • in

      public boolean in(X86Features features)
      Gets if this feature is present in a features object.
      Parameters:
      features - Features object.
      Returns:
      Present state.