Serializable
, Comparable<Cat.Type>
public static enum Cat.Type extends Enum<Cat.Type>
Enum Constant | Description |
---|---|
ALL_BLACK |
|
BLACK |
|
BRITISH_SHORTHAIR |
|
CALICO |
|
JELLIE |
|
PERSIAN |
|
RAGDOLL |
|
RED |
|
SIAMESE |
|
TABBY |
|
WHITE |
Modifier and Type | Method | Description |
---|---|---|
static Cat.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Cat.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cat.Type TABBY
public static final Cat.Type BLACK
public static final Cat.Type RED
public static final Cat.Type SIAMESE
public static final Cat.Type BRITISH_SHORTHAIR
public static final Cat.Type CALICO
public static final Cat.Type PERSIAN
public static final Cat.Type RAGDOLL
public static final Cat.Type WHITE
public static final Cat.Type JELLIE
public static final Cat.Type ALL_BLACK
public static Cat.Type[] values()
for (Cat.Type c : Cat.Type.values()) System.out.println(c);
public static Cat.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.