Enum Class CommentStatus

java.lang.Object
java.lang.Enum<CommentStatus>
uk.ac.ebi.kraken.interfaces.uniprot.CommentStatus
All Implemented Interfaces:
Serializable, Comparable<CommentStatus>, java.lang.constant.Constable

public enum CommentStatus extends Enum<CommentStatus>
Evidence on how the comment was derived.
  • Enum Constant Details

  • Method Details

    • values

      public static CommentStatus[] 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 CommentStatus 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
    • getValue

      public String getValue()
    • getName

      public String getName()
    • toType

      public static CommentStatus toType(String stringRepresentation)
      Lawrence added this for convienence, like in MassSpectrometryMethod - think this is a bit neater though as it uses the same string values as passed into the enum constructor - less need to maintain.....
      Parameters:
      stringRepresentation -
      Returns:
      CommentStatus