Enum Status

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Method Summary

      Modifier and Type Method Description
      int getRank()
      Gets rank.
      static Status getStatusByRank​(int rank)
      Gets status by rank.
      static Status valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Status[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ERROR

        public static final Status ERROR
        Error status.
        Since:
        1.0.0
      • FAILED

        public static final Status FAILED
        Failed status.
        Since:
        1.0.0
      • INCOMPLETE

        public static final Status INCOMPLETE
        Incomplete status.
        Since:
        1.0.0
      • RUNNING

        public static final Status RUNNING
        Running status.
        Since:
        1.0.0
      • SKIPPED

        public static final Status SKIPPED
        Skipped status.
        Since:
        1.0.0
      • PASSED

        public static final Status PASSED
        Passed status.
        Since:
        1.0.0
      • NO_RUN

        public static final Status NO_RUN
        No run status.
        Since:
        1.0.0
    • Method Detail

      • values

        public static Status[] 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 Status valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getRank

        public int getRank()
        Gets rank. The lost the rank, the worse the status
        Returns:
        the rank
        Since:
        1.0.0
      • getStatusByRank

        public static Status getStatusByRank​(int rank)
        Gets status by rank.
        Parameters:
        rank - the rank
        Returns:
        the status by rank
        Since:
        1.0.0