Enum Class Link.PostHint
- All Implemented Interfaces:
Serializable
,Comparable<Link.PostHint>
,Constable
- Enclosing class:
Link
Represents the hint for the type of post.
This can be used to determine how to handle the post (e.g., as an image, video, etc.).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a post that contains a gallery of images.Represents a post that contains a video hosted on Reddit.Represents a post that contains an image.Represents a post that contains a link to an external resource.Represents a post that contains a video hosted on an external platform. -
Method Summary
Modifier and TypeMethodDescriptionstatic Link.PostHint
Returns the enum constant of this class with the specified name.static Link.PostHint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOSTED_VIDEO
Represents a post that contains a video hosted on Reddit. -
IMAGE
Represents a post that contains an image. -
LINK
Represents a post that contains a link to an external resource. -
RICH_VIDEO
Represents a post that contains a video hosted on an external platform. -
GALLERY
Represents a post that contains a gallery of images.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-