Enum Class ContentAvailability
- All Implemented Interfaces:
Serializable,Comparable<ContentAvailability>,Constable
Availability of the stream.
A stream may be available to all, restricted to a certain user group or time.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe stream is available to all users.The stream is available to users with a membership.The stream is behind a paywall.The availability of the stream is unknown (but clients may assume that it's available).The stream is only available in the future. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentAvailabilityReturns the enum constant of this class with the specified name.static ContentAvailability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The availability of the stream is unknown (but clients may assume that it's available). -
AVAILABLE
The stream is available to all users. -
MEMBERSHIP
The stream is available to users with a membership. -
PAID
The stream is behind a paywall. -
UPCOMING
The stream is only available in the future.
-
-
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
-