Enum Class URL
- All Implemented Interfaces:
Serializable, Comparable<URL>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.This name was only used for making a sample container in order to get approval for an Unsplash API license.Deprecated.This URL was only used for making a sample container in order to get approval for an Unsplash API license.Deprecated.This URL was only used for making a sample container in order to get approval for an Unsplash API license.URL for Unsplash attribution, used to give credit to the image source. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()Getter for the string value associated with this enum constant.static URLReturns the enum constant of this class with the specified name.static URL[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPLASH_ATTRIBUTION
URL for Unsplash attribution, used to give credit to the image source. -
DEFAULT_AUTHOR_URL
Deprecated.This URL was only used for making a sample container in order to get approval for an Unsplash API license.URL for the page of the author of the default image, used for attribution purposes. -
DEFAULT_AUTHOR_NAME
Deprecated.This name was only used for making a sample container in order to get approval for an Unsplash API license.Name of the author of the default image, used for attribution purposes. -
DEFAULT_IMAGE_URL
Deprecated.This URL was only used for making a sample container in order to get approval for an Unsplash API license. The default image is now sourced from a different URL that does not require attribution, so this URL is no longer used in the application.URL for the default image used when an item does not have its own image, sourced from Unsplash and chosen to be a generic mountain landscape that fits well with the theme of the application.
-
-
Field Details
-
url
The string value associated with this enum constant, used for URLs and attribution information.
-
-
Constructor Details
-
URL
Constructs aURLenum constant with the specified string value.- Parameters:
url- The string value to associate with this enum constant, typically used for URLs and attribution information.
-
-
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
-
getUrl
Getter for the string value associated with this enum constant.- Returns:
- The string value that can be used for URLs and attribution information.
-