Enum Proposal.State

    • Enum Constant Detail

      • QUEUED

        public static final Proposal.State QUEUED
        Proposal was validated and has entered the queue, but a round containing this proposal has not started yet.
      • RUNNING

        public static final Proposal.State RUNNING
        Round containing the proposal has begun and is in progress.
      • ABORTED

        public static final Proposal.State ABORTED
        Proposal was aborted and did not reach consensus.
    • Method Detail

      • values

        public static Proposal.State[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Proposal.State c : Proposal.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Proposal.State 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
      • isDone

        public boolean isDone()
        Returns:
        true if this is a terminal state.