Enum MediaLink.Field
- All Implemented Interfaces:
Serializable,Comparable<MediaLink.Field>,java.lang.constant.Constable
- Enclosing interface:
MediaLink
Fields that represent the JSON elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe json field for duration-the length, in seconds, of the media resource.the json field for the height, in pixels, of the media resource.the json field for url of the media resource being linked.the json field for the width, in pixels, of the media resource. -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the name of the JSON element.static MediaLink.FieldReturns the enum constant of this type with the specified name.static MediaLink.Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DURATION
the json field for duration-the length, in seconds, of the media resource. -
HEIGHT
the json field for the height, in pixels, of the media resource. -
URL
the json field for url of the media resource being linked. -
WIDTH
the json field for the width, in pixels, of the media resource.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
Returns the name of the JSON element.- Overrides:
toStringin classEnum<MediaLink.Field>- Returns:
- String the name of the JSON element
-