Enum Class CommType

Object
Enum<CommType>
CommType
All Implemented Interfaces:
Serializable, Comparable<CommType>, Constable

public enum CommType extends Enum<CommType>
Author:
maartenl
  • Enum Constant Details

    • SAY

      public static final CommType SAY
    • SING

      public static final CommType SING
    • SCREAM

      public static final CommType SCREAM
    • CRY

      public static final CommType CRY
    • WHISPER

      public static final CommType WHISPER
    • SHOUT

      public static final CommType SHOUT
    • TELL

      public static final CommType TELL
    • ASK

      public static final CommType ASK
    • CHAT

      public static final CommType CHAT
  • Method Details

    • values

      public static CommType[] 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 CommType 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
    • toString

      public String toString()
      returns the communication type.
      Overrides:
      toString in class Enum<CommType>
      Returns:
      returns "ask", "say", "whisper", "shout", "tell".
    • getPlural

      public String getPlural()
      Returns the conjugation of the verb or some such stuff.
      Returns:
      for example, say becomes "says", but cry becomes "cries".