Enum Class SubjectType

java.lang.Object
java.lang.Enum<SubjectType>
com.caplin.streamlink.SubjectType
All Implemented Interfaces:
Serializable, Comparable<SubjectType>, Constable

public enum SubjectType extends Enum<SubjectType>

Enumeration that represents the available subject types.

The SubjectType can be obtained by calling getType() on a ContainerElement or DirectoryChangeElement.

It is also a parameter to createSubject() in StreamLink.

  • Enum Constant Details

    • CHAT

      public static final SubjectType CHAT

      Chat subject type.

    • CONTAINER

      public static final SubjectType CONTAINER

      Container subject type.

    • DIRECTORY

      public static final SubjectType DIRECTORY

      Directory subject type.

    • NEWS_HEADLINE

      public static final SubjectType NEWS_HEADLINE

      News headline subject type.

    • NEWS_STORY

      public static final SubjectType NEWS_STORY

      News story subject type.

    • PAGE

      public static final SubjectType PAGE

      Page subject type.

    • PERMISSION

      public static final SubjectType PERMISSION

      Permission subject type.

    • RECORD

      public static final SubjectType RECORD

      Record subject type.

    • USER

      public static final SubjectType USER

      User subject type.

    • JSON

      public static final SubjectType JSON

      JSON subject type.

    • UNKNOWN

      public static final SubjectType UNKNOWN

      The subject type is unknown.

  • Method Details

    • values

      public static SubjectType[] 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 SubjectType 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