Enum Class VMFlags

java.lang.Object
java.lang.Enum<VMFlags>
com.github.junrar.unpack.vm.VMFlags
All Implemented Interfaces:
Serializable, Comparable<VMFlags>, Constable

public enum VMFlags extends Enum<VMFlags>
DOCUMENT ME
Version:
$LastChangedRevision$
  • Enum Constant Details

    • VM_FC

      public static final VMFlags VM_FC
    • VM_FZ

      public static final VMFlags VM_FZ
    • VM_FS

      public static final VMFlags VM_FS
  • Field Details

    • flag

      private final int flag
  • Constructor Details

    • VMFlags

      private VMFlags(int flag)
  • Method Details

    • values

      public static VMFlags[] 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 VMFlags 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
    • findFlag

      public static VMFlags findFlag(int flag)
      Returns the VMFlags Type of the given int or null
      Parameters:
      flag - as int
      Returns:
      VMFlag of the int value
    • equals

      public boolean equals(int flag)
      Returns true if the flag provided as int is equal to the enum
      Parameters:
      flag - .
      Returns:
      returns true if the flag is equal to the enum
    • getFlag

      public int getFlag()
      Returns:
      the flag as int