public enum Habitat extends Enum<Habitat>
Enum Constant and Description |
---|
FRESHWATER
Freshwater habitats including rivers, lakes, ponds, wetlands, bogs, marsh, swamp and brackish waters!
|
MARINE
Marine habitats including the deep & open ocean, reefs and estuaries.
|
TERRESTRIAL
Terrestrial habitats cover all habitats on land
including forests, deserts, grasslands, meadows, tundra, mangroves, farmland.
|
Modifier and Type | Method and Description |
---|---|
static Habitat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Habitat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Habitat MARINE
public static final Habitat FRESHWATER
public static final Habitat TERRESTRIAL
public static Habitat[] values()
for (Habitat c : Habitat.values()) System.out.println(c);
public static Habitat 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 © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.