Enum Class EnumBit

java.lang.Object
java.lang.Enum<EnumBit>
adalid.commons.enums.EnumBit
All Implemented Interfaces:
ListOption, Serializable, Comparable<EnumBit>, Constable

public enum EnumBit extends Enum<EnumBit> implements ListOption
Author:
Jorge Campins
  • Enum Constant Details

    • TRUE

      public static final EnumBit TRUE
    • FALSE

      public static final EnumBit FALSE
  • Method Details

    • values

      public static EnumBit[] 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 EnumBit 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
    • valueOf

      public static EnumBit valueOf(boolean b)
      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:
      b - 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
    • valueOf

      public static EnumBit valueOf(Boolean b)
      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:
      b - 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
    • valueOf

      public static EnumBit valueOf(char c)
      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:
      c - 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
    • valueOf

      public static EnumBit valueOf(Integer i)
      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:
      i - 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
    • valueOf

      public static EnumBit valueOf(Long l)
      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:
      l - 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
    • getListOptions

      public static ListOptions getListOptions()
    • getListOptions

      public static ListOptions getListOptions(EnumBitLabelSet bls)
    • getListOptions

      public static ListOptions getListOptions(EnumBitLabelSet bls, boolean anulable)
    • getListOptions

      public static ListOptions getListOptions(EnumBitLabelSet bls, boolean anulable, boolean ordenado)
    • booleanValue

      public boolean booleanValue()
    • intValue

      public int intValue()
    • getLabel

      public String getLabel()
    • getLabel

      public String getLabel(EnumBitLabelSet bls)
    • getOptionValue

      public Object getOptionValue()
      Specified by:
      getOptionValue in interface ListOption
    • getOptionLabel

      public String getOptionLabel()
      Specified by:
      getOptionLabel in interface ListOption
    • getOptionDescription

      public String getOptionDescription()
      Specified by:
      getOptionDescription in interface ListOption
    • isOptionDisabled

      public boolean isOptionDisabled()
      Specified by:
      isOptionDisabled in interface ListOption
    • isNoSelectionOption

      public boolean isNoSelectionOption()
      Specified by:
      isNoSelectionOption in interface ListOption