Enum Class CatHelper.Type
- All Implemented Interfaces:
Serializable,Comparable<CatHelper.Type>,Constable
- Enclosing class:
- CatHelper
所有猫的类型
-
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 CatHelper.Type获取猫的类型toString()static CatHelper.TypeReturns the enum constant of this class with the specified name.static CatHelper.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_BLACK
黑猫 -
BLACK
西服猫 -
BRITISH_SHORTHAIR
英国短毛猫 -
CALICO
花猫 -
JELLIE
Jellie -
PERSIAN
波斯猫 -
RAGDOLL
布偶猫 -
RED
红虎斑猫 -
SIAMESE
暹罗猫 -
TABBY
虎斑猫 -
WHITE
白猫
-
-
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
-
fromType
获取猫的类型- Parameters:
catType-Cat.Type猫的类型- Returns:
- 猫的类型
-
toString
- Overrides:
toStringin classEnum<CatHelper.Type>
-