Enum Class Utils.Vote

java.lang.Object
java.lang.Enum<Utils.Vote>
it.unitn.disi.ds1.qtop.Utils.Vote
All Implemented Interfaces:
Serializable, Comparable<Utils.Vote>, Constable
Enclosing class:
Utils

public static enum Utils.Vote extends Enum<Utils.Vote>
Enum to represent all the possible votes that can be taken by a Node.
  • Enum Constant Details

    • NO

      public static final Utils.Vote NO
      A Node voted no for a write request.
    • YES

      public static final Utils.Vote YES
      A Node voted yes for a write request.
  • Method Details

    • values

      public static Utils.Vote[] 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 Utils.Vote 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