Enum Constant | Description |
---|---|
GERMINATED |
First growth stage
|
MEDIUM |
Fourth growth stage
|
RIPE |
Ripe stage
|
SEEDED |
State when first seeded
|
SMALL |
Third growth stage
|
TALL |
Fifth growth stage
|
VERY_SMALL |
Second growth stage
|
VERY_TALL |
Almost ripe stage
|
Modifier and Type | Method | Description |
---|---|---|
static CropState |
getByData(byte data) |
Deprecated.
Magic value
|
byte |
getData() |
Deprecated.
Magic value
|
static CropState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CropState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CropState SEEDED
public static final CropState GERMINATED
public static final CropState VERY_SMALL
public static final CropState SMALL
public static final CropState MEDIUM
public static final CropState TALL
public static final CropState VERY_TALL
public static final CropState RIPE
public static CropState[] values()
for (CropState c : CropState.values()) System.out.println(c);
public static CropState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public byte getData()
Copyright © 2018. All rights reserved.