Enum MainHeader.Flag

java.lang.Object
java.lang.Enum<MainHeader.Flag>
com.github.kokorin.jaffree.nut.MainHeader.Flag
All Implemented Interfaces:
Serializable, Comparable<MainHeader.Flag>, java.lang.constant.Constable
Enclosing class:
MainHeader

public static enum MainHeader.Flag extends Enum<MainHeader.Flag>
Main Header's flags.
  • Enum Constant Details

    • BROADCAST_MODE

      public static final MainHeader.Flag BROADCAST_MODE
      Set if broadcast mode is in use.
  • Method Details

    • values

      public static MainHeader.Flag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MainHeader.Flag 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
    • fromBitCode

      public static Set<MainHeader.Flag> fromBitCode(long value)
      Creates Set of MainHeader.Flag from passed in bitmask value.
      Parameters:
      value - bitmask value
      Returns:
      flags
    • toBitCode

      public static long toBitCode(Set<MainHeader.Flag> flags)
      Converts set of MainHeader.Flag to bitmask value.
      Parameters:
      flags - flags
      Returns:
      bitmask value