public enum TwilightType extends Enum<TwilightType>
| Enum Constant and Description |
|---|
ASTRONOMICAL |
CIVILIAN |
NAUTICAL |
| Modifier and Type | Method and Description |
|---|---|
static TwilightType |
findByValue(String value) |
String |
getValue() |
static TwilightType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TwilightType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TwilightType CIVILIAN
public static final TwilightType NAUTICAL
public static final TwilightType ASTRONOMICAL
public static TwilightType[] values()
for (TwilightType c : TwilightType.values()) System.out.println(c);
public static TwilightType 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 String getValue()
public static TwilightType findByValue(String value)
Copyright © 2015 Amedia. All rights reserved.