Enum SlackFileType

java.lang.Object
java.lang.Enum<SlackFileType>
com.hubspot.slack.client.models.files.SlackFileType
All Implemented Interfaces:
Serializable, Comparable<SlackFileType>

public enum SlackFileType extends Enum<SlackFileType>
  • Enum Constant Details

  • Method Details

    • values

      public static SlackFileType[] 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 SlackFileType 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
    • getType

      public String getType()
    • parse

      public static SlackFileType parse(String field)
    • tryParse

      public static Optional<SlackFileType> tryParse(String field)
    • getFileTypeClass

      public Class<? extends SlackFile> getFileTypeClass()