Enum Class FuzzyBoolean

java.lang.Object
java.lang.Enum<FuzzyBoolean>
de.gustavblass.commons.FuzzyBoolean
All Implemented Interfaces:
Serializable, Comparable<FuzzyBoolean>, Constable

public enum FuzzyBoolean extends Enum<FuzzyBoolean>
Used if a boolean might be neither fully true nor fully false.
  • Enum Constant Details

    • TRUE

      public static final FuzzyBoolean TRUE
      The boolean value is definitely true.
    • FALSE

      public static final FuzzyBoolean FALSE
      The boolean value is definitely false.
    • MAYBE

      public static final FuzzyBoolean MAYBE
      It is unclear whether the boolean value is true or false. Both values are possible.
  • Constructor Details

    • FuzzyBoolean

      private FuzzyBoolean(String name)
  • Method Details

    • values

      public static FuzzyBoolean[] 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 FuzzyBoolean 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