Serializable
, Comparable<Panda.Gene>
public static enum Panda.Gene extends Enum<Panda.Gene>
Enum Constant | Description |
---|---|
AGGRESSIVE |
|
BROWN |
|
LAZY |
|
NORMAL |
|
PLAYFUL |
|
WEAK |
|
WORRIED |
Modifier and Type | Method | Description |
---|---|---|
boolean |
isRecessive() |
Gets whether this gene is recessive, i.e.
|
static Panda.Gene |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Panda.Gene[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Panda.Gene NORMAL
public static final Panda.Gene LAZY
public static final Panda.Gene WORRIED
public static final Panda.Gene PLAYFUL
public static final Panda.Gene BROWN
public static final Panda.Gene WEAK
public static final Panda.Gene AGGRESSIVE
public static Panda.Gene[] values()
for (Panda.Gene c : Panda.Gene.values()) System.out.println(c);
public static Panda.Gene 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 nullpublic boolean isRecessive()
Copyright © 2020. All rights reserved.