Package org.ctan.site.services.site
Enum Class TipsService.TipType
- All Implemented Interfaces:
Serializable,Comparable<TipsService.TipType>,Constable
- Enclosing class:
TipsService
The enumeration
TipType contains the possible typed of tips
which can be retrieved..-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic List<TipsService.TipType> The methodofprovides means to translate a string into an array of tip types.static TipsService.TipTypeReturns the enum constant of this class with the specified name.static TipsService.TipType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A
The valueAis the tip type for an author. -
P
The valuePis the tip type for a package. -
T
The valueTis the tip type for a topic.
-
-
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
-
of
The methodofprovides means to translate a string into an array of tip types.- Parameters:
s- the string containing the letters for the tip type- Returns:
- the array of the types
- Throws:
IllegalArgumentException- in case the argument letter is not supported
-